aspose file tools*
The moose likes Applets and the fly likes Need help getting applet to work in IE7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Need help getting applet to work in IE7" Watch "Need help getting applet to work in IE7" New topic
Author

Need help getting applet to work in IE7

Gus Wilco
Greenhorn

Joined: Aug 01, 2008
Posts: 4
Hi,
Several years ago (2004) I placed an applet on out my webpage. It worked with most browsers back then. Today, that applet works fine in IE6 and Firefox, but does not load at all in IE7. Do I need to update how the applet is embedded? Here is the code snippet:

<!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<SCRIPT language="JavaScript"><!--
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT>
<SCRIPT language="JavaScript1.1"><!--
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
//--></SCRIPT>
</COMMENT>

<SCRIPT language="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 1 HEIGHT = 1 codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"><NOEMBED><XMP>');
else if (_ns == true && _ns6 == false) document.writeln('<EMBED type="application/x-java-applet;version=1.4" CODE = "AdMakerApp.AdMakerApp.class" ARCHIVE = "AdMakerApp.jar" WIDTH = 1 HEIGHT = 1 pw ="go571"/ scriptable=false pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED><XMP>'); //--></SCRIPT>

<APPLET code = "AdMakerApp.AdMakerApp.class" archive = "AdMakerApp.jar" width = 1 height = 1></XMP>
<PARAM name = CODE value = "AdMakerApp.AdMakerApp.class" >
<PARAM name = ARCHIVE value = "AdMakerApp.jar" >
<PARAM name="type" value="application/x-java-applet;version=1.4">
<PARAM name="scriptable" value="false">
<PARAM name = "pw" value="demo"/>


</APPLET>
</NOEMBED>
</EMBED>
</OBJECT>

<!--"END_CONVERTED_APPLET"-->
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 687
    
    1
I have an old applet with old HTML and it works in IE7.
Waypoints
Is there anything in the Java console?
Do you have the java plugin?
[ August 01, 2008: Message edited by: Norm Radder ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42274
    
  64
Have you tried it without all the mumble-jumble, just with an <applet> tag?


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need help getting applet to work in IE7