Jump to content

Error: uncaught exception: Permission denied to get property


optikalefx

Recommended Posts

full error:

Error: uncaught exception: Permission denied to get property HTMLDocument.getElementById

 

I have a page, with 2 iframes on that page (left and main)

I have a button on left that reads text from a textarea on main

That button uses an onClick event handler to envoke this function:

function upButton() {
var JSVar = (parent.main.document.getElementById("myTextArea").value);
}

 

When you submit the button to do some stuff, it reloads main.

But you when you click submit again, you get the error i said above...

 

I understand if there was a security issue but all my frames src's are on the same domain.  And if they didnt allow getElementById then why would it work once?

 

I also know that all the variables being sent are fine, because they are echoed using php, and alerted using javascript.

 

so what is this error and why is it being so mean?

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.