Jump to content

Alternative Ajax?


clonetrooper9494

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...