File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

&lt;EMBED&gt; in Netscape for Applet

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
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..
Dragana Petrovic

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: 4351

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

Visit my download page
Frank Carver

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.
[ September 25, 2002: Message edited by: Marilyn de Queiroz ]

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: &lt;EMBED&gt; in Netscape for Applet
It's not a secret anymore!