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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Vancouver, WA
    Posts
    233
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Permission Denied in Netscape 7.1

    What exactly does this mean? I found a number of posts about it -- one from ME over two years ago -- and none I saw had solutions.

    I'm getting "Permission denied to get property Window.SetItemsON

    Works fine in IE.

    Can't imagine my code will mean much out of context but when I don't post it I always get asked to so here it is. Also, reloading the page, sometimes it works.

    c+="<input type=radio name=itemsOn onClick='parent.create.setItemsOn()'";
    if (DV>0){c+=" checked"}
    c+=">On - Enter Items:&nbsp; Enter your own foods and recipes";

    // Set items on
    function setItemsOn(){
    // Get item number if cookie exists
    if (getCookie("itemNumCookie")!=null){itemNum=getCookie("itemNumCookie")} else {itemNum=1}
    setItems(itemNum)}

    function setItems(n){
    if (n==1){saveCookie1y("itemNumCookie",n,X1y); DV=1; saveItems(); numItems=1; makeImage()}
    if (n==2){saveCookie1y("itemNumCookie",n,X1y); DV=2; saveItems(); numItems=3; makeImage()}
    if (n==3){saveCookie1y("itemNumCookie",n,X1y); DV=3; saveItems(); numItems=6; makeImage()}
    if (n==4){saveCookie1y("itemNumCookie",n,X1y); DV=4; saveItems(); numItems=12; makeImage()}
    // Set items off
    if (n==0){DV=0; saveItems(); curItem=12; makeImage()}}

    P.S. Edit to above post... Just after posting it seemed to be working. Go figure. Netscape #*&%@!

    Thanks, Peter
    Last edited by peterinwa; 06-30-2004 at 07:13 AM.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,043
    Thanks
    0
    Thanked 251 Times in 247 Posts

    Just a guess...

    The error maybe occurs when the frame that calls the setItemsOn() function loads first before the other frame that contains that method.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Vancouver, WA
    Posts
    233
    Thanks
    2
    Thanked 0 Times in 0 Posts
    The error occurs when I click on the radio button, long after both pages are loaded.

    Thanks.


  •  

    Posting Permissions

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