• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

calling java applet function from javascript works in IE,but not in netscape

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I have a button in a form,when click the button,it will call a javascript function, and this javascript function will call a public method of an applet which is embedded in the same web page. it works well in IE, but in Netscape, it says "theapplet has no property". The code for the javascript function is as following:
function htmlRedirect(appletName)
{
var theapplet=document.applets[appletName];
theapplet.htmlRedirect();
}
The html for the button is :
<center><INPUT type="button" name="help" value="help" size="7" onClick="htmlRedirect('applet1')"></center>
</FORM>
applet1 is the name of the applet.
This annoying problem baffled me a lot. Help me,please!
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having the same problem as well. Can you let me know if you figure it out, and I will do the same in return. Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic