wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes <EMBED> in Netscape for Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

&lt;EMBED&gt; in Netscape for Applet

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi
i'm using NN6 and i have an EMBED tag for the Applet (as it requires plug-in). now, i want to invoke a method on that applet from javascript.
i tried to put ID in Embed as well as name in Embed (one by one) but none of them worked.
say,if i have <embed name="myapplet" ...> and in javascript i'm using alert(document.myapplet) then it identifies that as [object HTMLEmbedObject] but i can't invoke method on the applet...
any suggestions???
this is just the start of my troubles. i need to make it work on NN4.7 as well which doesn't support name tag well nor i can do getElementById() of DOM in NN4.7 Javascript...
plz help me..
regards
maulin.
Dragana Petrovic
Greenhorn

Joined: Jun 18, 2002
Posts: 1
I have the same problem and it seams that Netscape does not support the applet's public methods calls from javascript in case that applet is embeded as Java Plugin object.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

i use java 1 for applets so i can just use <applet> tag. however i had problems with my applet being unable to post to my servlet in netscape. no one could figure out why. IE has its faults but i sure prefer it over netscape


SCJP
Visit my download page
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
This thread is apparently the same problem as this other thread so I am closing this one, and recommend that further discussion happens over there.
Thanks.
[ September 25, 2002: Message edited by: Marilyn de Queiroz ]

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: &lt;EMBED&gt; in Netscape for Applet