Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

jquery .ajax works locally but not remote

first solid attempt at ajax



12:49 am on Dec 31, 2007 (gmt 0)

10+ Year Member

hi so i am attempting to send database updates from a form using jquery .ajax on apache server, php and mysql.

everything works fine when i run it locally and it should work fine remote but i am getting this error:

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

i dont get it because from what i understand the error results from when there is an attempt to access files from multiple servers but everything is on the one server.

i have tried using the domain name as well as ip address only to get the same result.

any help would be appreciated...


2:50 pm on Dec 31, 2007 (gmt 0)

5+ Year Member

It sounds like your trying to open a cross domain query. Make sure you are asking for a page from the same domain name, if this doesn't work try using relative paths instead of absolute eg. bar/foo.xml instead of http://www.example.com/other/bar/foo.xml


3:52 pm on Dec 31, 2007 (gmt 0)

10+ Year Member

For "Security" reasons, http_requests are denied permissions to access other domains.

If you are on the same server, you could use server side(php, asp, etc) to local file to fetch the info requested through the ajax call.


3:59 pm on Dec 31, 2007 (gmt 0)

10+ Year Member

going relative totally worked! i prolly should have but didnt try that because i had problems on an other server.

anyways thanks a ton for the fresh brain cells!


Featured Threads

Hot Threads This Week

Hot Threads This Month