Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

javascript and applet communication

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have one method in javascript
Method name is called() Method.Method use is simple alert message box.
I am try to called this from applet using JSObject.
I m try to called the call method of JSObject using the JSObject's reference variable but at the run time applet give me a exception.
exception like

netscape.javascript.JSException: :Member not found.

Code is like this in applet

JSObject jsroot=null;
jsroot = JSObject.getWindow(this);
jsroot.call("called",null);


javascript method is

function calledme(){
alert("Hello");
}

please give me solution

Regards
Devarshi Pandya
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JavaScript method name is not the same as the one you're calling in the applet.
 
reply
    Bookmark Topic Watch Topic
  • New Topic