I have inherited maintenance of an applet. I've been beating on this for a while with no success, since it's Friday, I'll yield to a higher power.
In IE the “classid” variable of the <OBJECT> attribute triggers the JRE validation and updating in HTML coded applet instantiations.
applet="<OBJECT classid=\"clsid:{CAFEEFAC-0018-0000-FFFF-ABCDEFFEDCBA}\" WIDTH = " + width + " HEIGHT = " + height + " codebase='http://java.sun.com/update/1.8.0/jinstall-8u31-windows-i586.cab#Version=1,8,0,0'><Rest of application> </OBJECT>"
This variable is not recognized by FireFox. Instead the same task is accomplished with a construct of <COMMENT><EMBED>“pluginspage”</COMMENT></EMBED>.
<COMMENT><EMBED type='application/x-java-applet;version=1.8' width='" + width + "' height='" + height + "' align='baseline' code='com.somedirectory.someApplet.class' pluginspage='http://javadl.sun.com/webapps/download/GetFile/1.8.0_31-b13/windows-i586/xpiinstall.exe' [Application to be executed...]</COMMENT></EMBED>
After Firefox v33+, the <EMBED> attribute has been deprecated and replaced with <OBJECT>.
The documentation states that the function of “classid” can be duplicated with:
• data=’URL of update directory’
• type=’ application/x-java-applet;version=1.8’
To make this work without nesting the object I need to discriminate between the IE and FFox browsers.
if (browser.Ffox) {
applet="<OBJECT WIDTH='" + width + "' HEIGHT='" + height + "' align='baseline' type='application/x-java-applet;version=1.8' data='http://javadl.sun.com/webapps/download/GetFile/1.8.0_31-b13/windows-i586/xpiinstall.exe'><Application to be executed...>"
} else {
IE }
And it doesn't work...
Ideas?
Mike
Updating applet JRE without embed.
- DanRaisch
- Moderator
- Posts: 127185
- Joined: September 23rd, 2004, 8:57 pm
- Location: Somewhere on the right coast
Re: Updating applet JRE without embed.
Moving to Web Development.
- trolly
- Moderator
- Posts: 39851
- Joined: August 22nd, 2005, 7:25 am
Re: Updating applet JRE without embed.
Why make a difference? To my knowledge both browsers understand the new object syntax.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
-
- Posts: 2
- Joined: February 19th, 2015, 10:09 am
Re: Updating applet JRE without embed.
"To my knowledge both browsers understand the new object syntax."
Not quite. As expected IE is happy with:
<OBJECT classid=\"clsid:{CAFEEFAC-0017-0000-FFFF-ABCDEFFEDCBA}\" WIDTH = " + width + " HEIGHT = " + height + " codebase='http://java.sun.com/update/1.8.0/jinstall-7u75-windows-i586.cab#Version=1,7,0,0'>...</OBJECT>
Firefox on the other hand wants the codebase and type statement directly under <OBJECT>
<OBJECT WIDTH='" + width + "' HEIGHT='" + height + "' codebase='http://javadl.sun.com/webapps/download/GetFile/1.7.0_75-b13/windows-i586/xpiinstall.exe#Version=1,7,0,0' type='application/x-java-applet;version=1.7'>...</OBJECT>"
I read your response last Saturday, It took me a while to get back to this.
Thanks Trolly,
Mike
Not quite. As expected IE is happy with:
<OBJECT classid=\"clsid:{CAFEEFAC-0017-0000-FFFF-ABCDEFFEDCBA}\" WIDTH = " + width + " HEIGHT = " + height + " codebase='http://java.sun.com/update/1.8.0/jinstall-7u75-windows-i586.cab#Version=1,7,0,0'>...</OBJECT>
Firefox on the other hand wants the codebase and type statement directly under <OBJECT>
<OBJECT WIDTH='" + width + "' HEIGHT='" + height + "' codebase='http://javadl.sun.com/webapps/download/GetFile/1.7.0_75-b13/windows-i586/xpiinstall.exe#Version=1,7,0,0' type='application/x-java-applet;version=1.7'>...</OBJECT>"
I read your response last Saturday, It took me a while to get back to this.
Thanks Trolly,
Mike
- trolly
- Moderator
- Posts: 39851
- Joined: August 22nd, 2005, 7:25 am
Re: Updating applet JRE without embed.
Another approach is shown here:
https://www.ailis.de/~k/archives/63-How ... wsers.html
http://www.w3schools.com/tags/tag_embed.asp
https://www.ailis.de/~k/archives/63-How ... wsers.html
http://www.w3schools.com/tags/tag_embed.asp
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.