• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JSObject error in applet when running in mozilla

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
I have an applet from which i call javascript using JSObject
It works fine in IE, but i get the following error in mozilla, (1.0.7 and 1.5 version)
netscape.javascript.JSException

at netscape.javascript.JSObject.getWindow(Unknown Source)

at javachart.applet.sopChartApp.handlePick(sopChartApp.java:89)

at javachart.applet.sopChartApp$1.mousePressed(sopChartApp.java:35)

at java.awt.Component.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)


This is code i have in my applet

try
{
JSObject win = (JSObject) JSObject.getWindow(applet);
win.eval1("javascript penReport(name)");
}
catch (Exception exc)
{
System.out.println("Error in printing report " + exc.getMessage());
exc.printStackTrace();
}



Ashish
 
ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Anyone has any idea on this one
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!