How to get cross domain request's response in javascript?

The way this is generally done is to have the script response consist of a function call to a function already present on the page. The browser will not let your code "see" the contents of the imported script, however, for security reasons. The browser will run the script, however, so long as it's valid JavaScript code.In your case, the response is not valid JavaScript code.

There can't be a script tag or any HTML markup — it must be pure JavaScript code, just like the contents of any other file imported with a script tag.

The way this is generally done is to have the script response consist of a function call to a function already present on the page. The browser will not let your code "see" the contents of the imported script, however, for security reasons. The browser will run the script, however, so long as it's valid JavaScript code.In your case, the response is not valid JavaScript code.

There can't be a tag or any HTML markup — it must be pure JavaScript code, just like the contents of any other file imported with a tag.

What your asking for is known as JSONP or "JSON with padding". See: en.wikipedia.org/wiki/JSONP for more info.

Cross domain request is gotten (without quotes):. Get cross domain request.

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