• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!