M
M. Magistri
Hi all!
Why doesn't the following code load my applet under WinXP with Internet Explorer 6?
<SCRIPT language="javascript" type="text/javascript">
<!--
if (getBrowser()=="IE"){
document.write("<OBJECT standby='Wait maximum 25 seconds to load........' classid='clsid:8AD9C840-044E- 11D1-B3E9-00805F499D93' WIDTH = '600' HEIGHT = '400' CODEBASE='../Applet/' name='GeoMap'>"); if (false) document.write("</OBJECT>");}
else {
document.write("<OBJECT standby='Wait maximum 25 seconds to load........' classid='java:GeoMap.class'
WIDTH = '600' HEIGHT = '400'
CODEBASE='../Applet/' name='GeoMap'>");
}
document.write("<PARAM NAME ='ARCHIVE' VALUE = 'GeoMapJar.zip' > </PARAM>");
document.write("<PARAM NAME ='codebase' VALUE = '../Applet/' > </PARAM>");
document.write("<PARAM NAME ='code' VALUE = 'GeoMap.class' > </PARAM>");
...
document.write("</OBJECT>");
-->
</SCRIPT>
It should loads two differents tags. It depends on the Client Browser. Everything goes ok under win2000 and win98, but under WinXP it goes wrong! Why?
What's the standard <OBJECT> expression to load Applets with JARs archive? What is the best way to load an Applet to make it 100% compatible with all browsers and all Operating Systems?
Thank You a LOT!!
Massimiliano from Rome, ITALY
Why doesn't the following code load my applet under WinXP with Internet Explorer 6?
<SCRIPT language="javascript" type="text/javascript">
<!--
if (getBrowser()=="IE"){
document.write("<OBJECT standby='Wait maximum 25 seconds to load........' classid='clsid:8AD9C840-044E- 11D1-B3E9-00805F499D93' WIDTH = '600' HEIGHT = '400' CODEBASE='../Applet/' name='GeoMap'>"); if (false) document.write("</OBJECT>");}
else {
document.write("<OBJECT standby='Wait maximum 25 seconds to load........' classid='java:GeoMap.class'
WIDTH = '600' HEIGHT = '400'
CODEBASE='../Applet/' name='GeoMap'>");
}
document.write("<PARAM NAME ='ARCHIVE' VALUE = 'GeoMapJar.zip' > </PARAM>");
document.write("<PARAM NAME ='codebase' VALUE = '../Applet/' > </PARAM>");
document.write("<PARAM NAME ='code' VALUE = 'GeoMap.class' > </PARAM>");
...
document.write("</OBJECT>");
-->
</SCRIPT>
It should loads two differents tags. It depends on the Client Browser. Everything goes ok under win2000 and win98, but under WinXP it goes wrong! Why?
What's the standard <OBJECT> expression to load Applets with JARs archive? What is the best way to load an Applet to make it 100% compatible with all browsers and all Operating Systems?
Thank You a LOT!!
Massimiliano from Rome, ITALY