Working with Ajax, we have run into the Same Origin Policy over and over again. In this post, we’ll show you another way to get around it.
The Same Origin Policy restricts you from loading files from a server not your own. There is an exception: JavaScript (.js) files are allowed.
There are sites on the web where you can request information and have it passed back in JSONP format. The “P” stands for padding: JSONP is JSON with padding. The results are returned as a function call, with the results as parameters. That function can then be called in your program.
Continue reading “Ajax made Simple Part 7: Use JSONP to get a stock quote”
