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 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile setting the parents style sheet

    guys & gals. can anyone help

    my main window(parent) launches a popup window(child). there are buttons on the child window to change the style sheet on the parent page.

    here the line of code im using

    onclick="window.opener.setActiveStyleSheet('main',1);"

    but i am getting an error on that line "permission denied"

    i know my function setActiveStyleSheet('main',1); works as i have tested it from the parent.

    what am i doing wrong ???


    tnksX K

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    could it be that you've got no code ... no wait a minute, you haven't posted that yet so we don't actually know wot the problem could be!!

    post your code, and maybe we can see from that.

    actually, first of all there is no method called setActiveStyleSheet() that belongs to the opener object. that's your first problem right there.

    still post your code, though

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    As I said from the original thread, it might be the child window is in a different domain as the main window.

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by glenngv
    As I said from the original thread ...
    wot's the URL?

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Quote Originally Posted by jbot
    wot's the URL?
    It's in the Post A Javascript forum, so it might be deleted. That's why I didn't post it earlier. But there's no additional info, still the same post by the original poster. But in case it's still there: http://www.codingforums.com/showthread.php?t=41650


  •  

    Posting Permissions

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