Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Permission denied error while invoking javascript method

    Hi,

    When I invoke a javascript method on the parent window of an iframe, I am getting a "Permission denied" script error. I am using IE6. While the same stuff works on another PC with IE6, its not working in mine. Is it because of some IE settings?? What could be the issue?

    regards,
    Anand

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    probably the two pages (parent and the page loaded in iframe) are not from the same domain. In this case, for obvious security reasons (and of course, in all browsers) it is not possible to create a javascript relationship between them. Are u sure that it works on other computers?
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Are you testing it from the server in both cases, or are you testing it from a local file on your own computer? Local files are in another security zone as internet zone and therefore scripts are not by default allowed to cross that border. Or indeed, per default they may not even run at all in local zone.

    This is because Microsoft reasons like this:
    - This file can act as an executable.
    - It's run as the user and thus has all the user's privileges.
    - The user thinks of it as a document, not as an executable.
    - That is, the user expects it to have full user privileges as a document.
    - But the user don't expect it to be an executable at all.
    - So it would be a security hole to give it the user's privileges as an executable.

    In short, document type files downloaded from the net shouldn't be given any raised privileges just from being downloaded (the original source is still not trusted), because the user thinks of them as documents and not executables.
    Last edited by liorean; 03-17-2006 at 11:02 AM.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #4
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Permission denied error

    I have deployed the JSP containing the iframe in my local tomcat server. The iframe serves as a container for a JSP page containing an applet. From the applet, I invoke a javascript method thats in the iframe which inturn invokes a method in the iframe's parent.

    Actually, this error occurs only in my machine(where the server runs). When I try it from a different PC, it doesn't occur. Even from another machine, I access the JSP through our coorporate Intranet. Is the other machine in a different security zone as mine?

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    It could be. Users and/or you may have set that computer up differently when it came to internet zones.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Permission denied error

    Hi,

    I deployed the JSP in another PC and tried it from my PC. In this case its working. On the other hand, if I try it from that PC itself it isn't. The Permission denied error pops up. So, the issue has something to do with running the server and client(browser) in the same machine.. I tried adding local host as a Trusted site. Even then the same issue occurs

    regards,
    Anand


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •