The only (easy) way to get cross-domain data using AJAX is to use a server side language as the proxy as Andy E noted. Here's a small sample how to implement that using jQuery:
The jQuery part:
And the PHP (proxy.php):
Simple as that. Just be aware of what you can or cannot do with the scraped data.
|
Thursday, May 9, 2013
Cross domain Ajax request
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment