Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
Error: uncaught exception: Permission denied to set property HTMLTextAreaElement.value
Please help me in this.
Thanx in advance.
>>Exception is :
Error: uncaught exception: Permission denied to set property HTMLInputElement.value
>>Code Snippet :
..... JSP code ....
..... JSP code ....
//window.opener.document.form1.viewnotesTS.value = "<%= removeLineFeed(notes)%>"; // Gives exception..
//window.opener.updateNotes("<%= removeLineFeed(notes)%>"); // Gives exception..
window.opener.document.form1.hiddenNotes.value = "<%= removeLineFeed(notes)%>"; //Setting Hidden field..
Did you ever find a solution for this problem?
I have a similar thing happening. I am searching for an calling a function in another frame. I thought it was URL related as I spotted some problems with an embedded font in IE and it was sorted by ensuring every file has a <BASE href="..."> 'cos IE and NS were clipping my domain name from www.domainname.com to domainname.com.
This permission denied error is kind of intermittent. It doesn't happen when running off [localhost,...] but as soon as it's on a remote web server the problem happens.
I don't like working like this. Does anyone know what causes these "uncaught exception: permission denied accessing..." errors?
I'll keep trying different scenarios and ways of calling the function between windows, but there's no guarantee on a solution as I've thought I'd fixed the problem only for it to happen again after a short while.
Would suggest that the actual text content being assigned to the value of the textarea may be causing the problem.
//window.opener.document.form1.viewnotesTS.value = "<%= removeLineFeed(notes)%>"; //Raises exception
I assume removeLineFeed(notes) is a block of text with the LF characters stripped out.
Could it be the actual content of the text that's sometimes causing the error? Causing the syntax of the code to actually change?
To use the first line of this post as an example:
Window.opener.document.form1.viewnotesTS.value = ""sometimes getting this error; not always"";
It doesn't work. The double double quotes mess it up.
Could that be it?
It reminds me of the problem of writing text to a SQL database: Single quotes have a special meaning in SQL so they have to be escaped with an additional single quote which disappears when written to the database.