• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

JSException: Access is denied.

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have the below Java code in the init() method of my applet:
JSObject mainWin = JSObject.getWindow(this);
JSObject doc = (JSObject) mainWin.getMember("document");
When I load this applet locally (from my computer) this code executes fine. But when I upload this code to a remote host and try to load the applet, I get netscape.javascript.JSException: Access is denied.
error.
I think this error is because the applet cannot access to the Javascript document object which it was launced from. And, I understand there is some kind of security issue, but I cannot figure out what? Do I need to sign the applet? Or make the site trusted on my IE?
Thanks.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic