News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WebSpeaks.in:
Cross Domain Posting using PHP and JavaScript ITS POSSIBLE!
December 21, 2010 @ 11:51:35

Ever been frustrated by the fact that your javascript code can't make JSON requests to sites under other other domains? Well, WebSpeaks.in has some happy news for you in the form of JSONP.

Well.....finally i have worked out how to post cross-domain data which is restricted by browser's security policies. What is it?? This will be used for posting AJAX requests via java-script to any web-service or web-page in any DOMAIN and also get back the results from there.

JSONP allows you to call a URL outside of the domain the script is running from with a callback. This callback lives in the calling script so, technically, it never leaves that scope. There's lots of other resources out there to help you implement it in your own code including jQuery and Prototype JSON handling.

0 comments voice your opinion now!
crossdomain javascript jsonp tutorial


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Array Operators in PHP: Interesting but Less Spoken

Stefan Mischook's Blog: PHP Video: the Zend Framework and Web 2.0

PHPBuilder.com: Oracle with PHP: a Developer's View

SitePoint PHP Blog: Diffbot: Crawling with Visual Machine Learning

phpDevelopment: Zend Framework Tutorial Series: Part 2 - Debugging your application


Community Events





Don't see your event here?
Let us know!


introduction deployment framework symfony threedevsandamaybe community zendserver interview library release tips laravel series podcast developer bugfix language api opinion list

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework