Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Denied Error - comwin - ASP pages 1

Status
Not open for further replies.

squirleegirl

Programmer
Jun 24, 2003
59
US
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!
 
Hmm, I put it in a new document and it worked fine for me.

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
That's strange! I guess it might be something with the IIS permissions. I can't imagine what since everything else works fine.

Thanks for you help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top