clonetrooper9494 Posted May 25, 2009 Share Posted May 25, 2009 I know that with AJAX, you can send requests to pages from the server that is running the script. Is there way to contact a different server other than your own? Such as opening http://google.com/? When I try it using regular AJAX, the script crashes. I have tried getting the innerHTML of an iframe, but that doesn't work...Is there any way other than using a server sided script? Link to comment Share on other sites More sharing options...
Ingolme Posted May 25, 2009 Share Posted May 25, 2009 It can't be done with Javascript. Javascript can only access information from the same domain it was loaded from.You'll need to use a server-side language such as PHP. Link to comment Share on other sites More sharing options...
clonetrooper9494 Posted May 26, 2009 Author Share Posted May 26, 2009 Hmm, that's to bad. Thanks for clarifying. Link to comment Share on other sites More sharing options...
vytas Posted May 26, 2009 Share Posted May 26, 2009 Well it is allowed to send data in a form to another website. But then u wouldn't be using JavaScript or Ajax. And another downside is you won't retrieve the data from the server back. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.