squirleegirl
Programmer
Greetings! I hope someone can help. I am not very familiar with Javascript at all.
I've got a critique website that when a certain answer is checked, it automatically brings up a comments section. Up until last week, it was working fine. What happened I don't know. This is my code:
SCRIPT ID=CommentButtonClick LANGUAGE=javascript>
function document_onclick( QuesNumber , CritiqueNum, QuesTxt, NewCom)
{
var windowsize = "top=0,left=0,Height=" + screen.Height + ",Width=" + screen.Width
comWin = window.open("","",windowsize)
comWin.document.write("<form Name='form1' METHOD='post' ACTION='comment_grab.asp' id=" + QuesNumber + " >");
comWin.document.write("<input type='Hidden' Value=" + CritiqueNum + " name='CritiqueNum'>");
comWin.document.write("<input type='Hidden' Value='" + QuesTxt + "' name='QuesTxt'>");
comWin.document.write("<input type='Hidden' Value=" + QuesNumber + " name='QuesNumber'>");
comWin.document.write("<input type='Hidden' Value='" + NewCom +"' name='NewCom'>");
comWin.document.form1.submit();
}</SCRIPT>
The error I am getting is an "Access Denied". When I debug, it shows the line with the error to be (or at least that is the one that is highlighted)
comWin.document.write("<form Name='form1' METHOD='post' ACTION='comment_grab.asp' id=" + QuesNumber + " >");
I have not touched any of the code for this or any other parts of this website. The Critiques section is actually part of a bigger website - ALL of which works fine.
I checked the permissions on the files and they look okay,too.
Does anyone have any suggestions?
Any help is greatly appreciated!
I've got a critique website that when a certain answer is checked, it automatically brings up a comments section. Up until last week, it was working fine. What happened I don't know. This is my code:
SCRIPT ID=CommentButtonClick LANGUAGE=javascript>
function document_onclick( QuesNumber , CritiqueNum, QuesTxt, NewCom)
{
var windowsize = "top=0,left=0,Height=" + screen.Height + ",Width=" + screen.Width
comWin = window.open("","",windowsize)
comWin.document.write("<form Name='form1' METHOD='post' ACTION='comment_grab.asp' id=" + QuesNumber + " >");
comWin.document.write("<input type='Hidden' Value=" + CritiqueNum + " name='CritiqueNum'>");
comWin.document.write("<input type='Hidden' Value='" + QuesTxt + "' name='QuesTxt'>");
comWin.document.write("<input type='Hidden' Value=" + QuesNumber + " name='QuesNumber'>");
comWin.document.write("<input type='Hidden' Value='" + NewCom +"' name='NewCom'>");
comWin.document.form1.submit();
}</SCRIPT>
The error I am getting is an "Access Denied". When I debug, it shows the line with the error to be (or at least that is the one that is highlighted)
comWin.document.write("<form Name='form1' METHOD='post' ACTION='comment_grab.asp' id=" + QuesNumber + " >");
I have not touched any of the code for this or any other parts of this website. The Critiques section is actually part of a bigger website - ALL of which works fine.
I checked the permissions on the files and they look okay,too.
Does anyone have any suggestions?
Any help is greatly appreciated!