Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
jquery .ajax works locally but not remote first solid attempt at ajax sneaks
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...
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 XtendScott
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.
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!