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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

permission denied

Status
Not open for further replies.

49er

Programmer
Aug 24, 2000
38
US
I have a web page with 2 frames. The main frame (MapFrame) contains an image. Once the page loads, I submit a string to a vb server program that does some processing and then writes a simple web page back in an attempt to replace the content by calling a function that creates new content for the frame. The code that accomplishes this is below. Right now, the only thing the function called passedValue does is generate an alert box. However, when the script in the following code tries to run, I get a "permission denied" error. Interestingly, if I do not attempt to call the passedValue function and directly insert code for an alert box below, the alert box works fine. What does this error mean exactly? Any ideas on what could be going on? Thanks.
With WebLink
<HTML><HEAD><TITLE>JavaScript Stuff</TITLE>
<script language=&quot;&quot;javascript&quot;&quot;>
function SendString() {
parent.MapFrame.passedValue();
}
</script>
</HEAD>
<body onload='JavaScript:SendString()'>
</body></html>
 
Are the documents in the frames from different servers.
If they are from different servers javascript security won't allow information to pass between the documents.

 
Hey HayMKE,
thanks for the reply. The files populating the frames are indeed from the same machine. Just a point of clarification, right now I am pulling those off a network drive not a true web server. Other than your previous comments, is there anything that pops out as a possible cause? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top