Can I make an XMLHttpRequest to another domain?

Nope, not right now. I believe I read that plans/design's are in the works by standards groups for the future, so we can securely do this Cross site scripting vulnerabilities would be rampant other wise JSONP is a possible solution if the other sites API supports.

Nope, not right now. I believe I read that plans/design's are in the works by standards groups for the future, so we can securely do this. Cross site scripting vulnerabilities would be rampant other wise.

JSONP is a possible solution if the other sites API supports.

Jsonp is the magic word, +1 – Ali A Nov 27 '08 at 22:04.

Browsers won't let you do that. You can use a hidden IFrame to do your fetching, but it's complex enough that i'd just use a server (or switch to a different language, if I don't have to run in a browser).

Even with a hidden Iframe your still not alowed to ge the contents of something that's from another domain. – Pim Jager Nov 27 '08 at 21:55.

That's not possible due to the SOP (Same Origin Policy) that browser have these days to restrict XSS attacks. You will have to use a server side script (PHP or something).

You can try to do something on the serverside. So on your application you make the request to the remote site getting the result and returning it to your client. The AJAX call is then only calling your own server and works.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions