Skip to content Skip to sidebar Skip to footer

Ajax Request From Local File

I'm trying to make a HTA with cross-domain request inside using JQuery.Soap plugin. $.soap({ url: 'some url', method: 'some method', appendMethodToURL: false, name

Solution 1:

Not with Ajax itself, due to the same-origin policy restriction in modern browsers - what should be possible however is to load data via JSONP (http://en.wikipedia.org/wiki/JSONP)

It works by basically adding a <script src=""> tag on demand, which then loads an external js file with your data and makes a call to a function e.g. dataLoaded()


Post a Comment for "Ajax Request From Local File"