HighDots Forums  

Tag <OBJECT>...

alt.html.tags alt.html.tags


Discuss Tag <OBJECT>... in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
M. Magistri
 
Posts: n/a

Default Tag <OBJECT>... - 05-14-2004 , 09:37 AM






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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.