jquery - jQTouch loading remote data -
I am using jQTouch which is a jQuery implementation with some extra stuff for mobile devices. I have a div with the id = testinner when I use this code, it works fine with the local file:
$ ("# testinner"). Load ("test.html");
But if I do a test with a remote file, then nothing loads
$ ("#testinner") .load ("http : //www.google .com ");
Anyone have any ideas that I am doing wrong?
Crack-domain restrictions exist, even for jQtouch applications.
If you want to access external data, then it must support JSON-P (callback with JSON) or it must exist on the same server present on your code.
Comments
Post a Comment