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

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic