By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,932 Members | 1,468 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,932 IT Pros & Developers. It's quick & easy.

Tag <Object> and Applet...

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Fri, 14 May 2004 14:35:16 GMT, M. Magistri wrote:
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?


There is no guaranteed way, for the
_best_ way, I prepared the JavaVersionApplet
<http://www.physci.org/codes/jre.jsp>

Toss the <object><embed> tags and use simple
<applet> tags (in HTML '4.01 Transitional',
naturally).

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.