Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

<EMBED> in Netscape for Applet

 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 4385
3
Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ]
 
    Bookmark Topic Watch Topic
  • New Topic