XMLHttpRequest is subject to the browser's sandbox. I believe the URLs it requests may need to be in the same domain as the calling script. That said, you are somewhat at the mercy of the browser. I think Firefox just stops the request and puts an error message in the Javascript console; Internet Explorer puts up a warning dialog and will let the user override it.
<br><br>Instead of a fully qualified host name, try a local one: url='<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www./" target="_blank"></a><phpfilename>.php? ...';<br><br>jeff<br>
<br><div><span class="gmail_quote">On 2/7/07, <b class="gmail_sendername">Peter Fogg</b> <<a href="mailto:peter.fogg@sbcglobal.net">peter.fogg@sbcglobal.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the response. The server is at a hosting company and I do<br>not have access to any of the logs. There are no references to<br>"file:///" anywhere in the code; the code in the JavaScript declaring<br>
the url for the request is:<br>url='<a href="http://www.">http://www.</a><domainname>/<phpfilename>.php? ...';. Isn't that a<br>fully qualified host name?<br><br>Today it is still the case that the AJAX works without problem here at
<br>my home but fails intermittently on computers elsewhere some of which<br>are on slow pipes and some on T1 pipes.<br><br>Peter -<br><br>On Feb 6, 2007, at 10:49 AM, Claude Felizardo wrote:<br><br>> On 2/6/07, Peter Fogg <
<a href="mailto:peter.fogg@sbcglobal.net">peter.fogg@sbcglobal.net</a>> wrote:<br>>> I am involved in the development of a website that uses AJAX in<br>>> several<br>>> places. The site works without a problem on my several iMac OS 10x and
<br>>> Windows XP computers. However, the AJAX parts of the site do not work<br>>> for several other people on their various Windows computers in their<br>>> homes. In addition, some of them have experienced intermittent success
<br>>> with the AJAX.<br>>><br>>> This message appears: "Error: uncaught exception: Permission denied<br>>> to<br>>> call method XMLHttpRequest.open".<br>>><br>>> Yes, the entire site, database, php files etc. is in the same domain.
<br>>><br>>> Any thoughts on this head-scratcher will be appreciated.<br>>><br>>> Peter -<br>><br>> Get the exact time for the errors then check your web server logs for<br>> errors. check both the access and error logs.
<br>><br>> A quick google search using your error text says to check to make sure<br>> you don't have references to file:/// or not using a fully qualified<br>> host name. Also check for cross domain scripting security issues.
<br>><br><br></blockquote></div><br>