Applet and Tag <OBJECT>...

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
 
D

DU

M. Magistri said:
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

I was about to answer you but then I noticed that you multi-posted in
other newsgroups.

DU
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top