Using jquery .load to load cross domain site using James Padolsey's jquery mod -
i trying use mod performing cross domain requests jquery: http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/.
the script available @ https://github.com/padolsey/jquery-plugins/blob/master/cross-domain-ajax/jquery.xdomainajax.js.
firstly test functionality of mod performing .load function quoted on page:
$('#container').load('http://google.com'); // seriously!
my simple guess on how following
<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script type="text/javascript" src="jquery.xdomainajax.js"></script> </head> <body> <div id="container"> google.com should placed here </div> <script type="text/javascript"> $('#container').load('http://google.com'); </script> </body> </html>
this doesn't work, though (just outputs google.com should placed here).
any on how change guess work appreciated.
i have checked out how content domain .load()? seems same content question, not answer how make jquery mod linked work.
Comments
Post a Comment