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

Permission Denied Javascript Function Call

Status
Not open for further replies.

mstem

Programmer
Aug 3, 2000
3
GB
I am designing a system which has 4 pc's connected by a network. Each one is to run a web server and a user can connect to the any of the servers to get data from all the pc's.<br><br>I have created a display page which opens first and opens up a window for each of the pc's:<br>open('datapc1.html','DataFromPC1')<br>open('datapc2.html','DataFromPC2') etc<br>The display page also defines a Javascript function called update which modifies the icons on the screen depending on the status of the 4 pc's.<br><br>Each of the data pages ( eg datapc1.html) makes a call to the display page update function passing in status parameters:<br>window.opener.window.updatePC1(1,2,3,4)<br><br>This all works fine when the data pages are served locally (for development) as defined in the open commands above but as soon as I define an IP address for them:<br>open('http:\\100.100.100.100\datapc1.html','DataFromPC1')<br>open('http:\\100.100.100.101\datapc2.html','DataFromPC2') etc<br>The page is served OK but as soon as the page tries to execute the 'window.opener.window.updatePC1' command<br>I get a Permission Denied error. Its as if the window.opener wont work if an IP address is used?<br><br>I have looked at the Apache config help but still dont know whether its a configuration file type problem or a Javascript problem.<br><br>Can anyone save the day?<br><br>Cheers,<br><br>Michael.
 
I'm almost positive that's a client-side Javascript problem, not an Apache one. Why don't you post your script in the Javascript forum and ask for help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top