JSON with Padding = JSONP
August 19th, 2008 by admin

With JSONP, you can avoid the “Access is Denied” problem when loading a remote AJAX request. jQuery 1.2.x now supports JSONP, you can use that or this simple code snippet. In this example, let’s assume you’re on a page with a remote javascript loaded, now you only want this remote script to reload, not the whole page.

And the result of getJSON.php:


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

»  Substance:WordPress   »  Style:Ahren Ahimsa