Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / July 2005



Tip: Looking for answers? Try searching our database.

Permission denied to call method XMLHttpRequest.open

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
francescomoi@usa.com - 25 Jul 2005 18:42 GMT
Hi.

I'm trying to build a webpage which calls another one (at a
different server) by using:
var req = new XMLHttpRequest()

I know some browsers (Mozilla and IE) doesn't allow it, and
shows this error:
Permission denied to call method XMLHttpRequest.open

Can I solve this issue? Thx.
Martin Honnen - 25 Jul 2005 19:29 GMT
> I'm trying to build a webpage which calls another one (at a
> different server) by using:
[quoted text clipped - 5 lines]
>
> Can I solve this issue? Thx.

IE has different security zones and for each zone you can configure
whether access to data sources from a different server is allowed. So
you would need your users to lower the normal security settings or put
your site in the trusted zone for instance and configure that to allow
such access.
With Mozilla you would need to use signed script and then request the
privilege to access data from a different server, the browser user can
then grant that privilege or not and save that setting.

Or you solve it on your server by setting up a "proxy" script that
fetches the XML from the other servers so that the client-side script
connects to your own server only.

Signature

    Martin Honnen
    http://JavaScript.FAQTs.com/

carlbernardi@gmail.com - 26 Jul 2005 02:49 GMT
Is it possible to call a page from a different server into an iframe or
something and then getting the document somehow using javascript??
Phat G5 (G3) - 26 Jul 2005 05:28 GMT
You can load anything you want into an iframe but you are not allowed to
read from it unless the content of the iframe is from the same domain.

-Steffan

> Is it possible to call a page from a different server into an iframe or
> something and then getting the document somehow using javascript??
j_liu21@hotmail.com - 30 Jul 2005 19:21 GMT
Without full knowledge of httprequest() to create signed scripts and
hiding the impact to end users, can you provide more detail on the
proxy script.  Also, is this a change to the destination web server,
i.e. one change corrects this for all end users?  I'm performing a
httprequest on the same local server but an getting this error message.
It does not appear when I test via localhost in the url.
j_liu21@hotmail.com - 30 Jul 2005 19:35 GMT
Sorry, got it.  I was using CFAjax and found what the problem was in
their BB.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.