- Create Account

Any reason why it doesn't load applet params?

Forums > HTMLHttpRequest > Any reason why it doesn't load applet params?
Author
Message

1) mikey Group: Members
Posts: 3 Joined: 26 Sep 2007 Location: Vancouver IP: 74.127.--.--
Nice script, I am playing it to load an applet I like to hide, works great as it loads the applet and params in Firefox, Opera, but not IE.

<applet></applet> works
<applet><param></applet> param is ignored

Thanks
Michelle

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
Hmm! Try an <object> tag in MSIE perhaps?

- Angus.

3) mikey Group: Members
Posts: 3 Joined: 26 Sep 2007 Location: Vancouver IP: 74.127.--.--
Hi there Angus, thanks for your reply. I tried what you suggested. If I view the page that has the applet without going through your script; direct access. The applet loads via your method <object></object>. Now through the scripting I get the following message.

APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Here is what I have as my applet object.

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width= "290" height="290" id="rup" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#ve rsion=1,5,1">
<param name="archive" value="radupload.jar">
<param name="url" value="upload.php">
</object>

4) mikey Group: Members
Posts: 3 Joined: 26 Sep 2007 Location: Vancouver IP: 74.127.--.--
here's a question: i was just reading through all the posts and was looking javascripting in the parent window to be called from the page being loaded, you ever heard of the applet script in the parent being called form another page as in the page being loaded. did that even make sense!

5) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
To be honest this script is designed for loading text, and perhaps image. Loading script and applets is not really a wise move as the content is merged with the parent document, quite unlike an IFRAME.

I'd consider using an IFRAME instead perhaps as it's probably a better tool for the job!

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.