XMLHttpRequest cannot load file://localhost/Users/bhumika/Documents/phonegap-2.2.0/lib/ios/bin/****/www/js/data.json. Origin null is not allowed by Access-Control-Allow-Origin.
to Solve above error write below syntax in your device ready function.
$.support.cors = true;
$.mobile.allowCrossDomainPages = true;
Or
Write Below syntax in PHP file to the server.
Or
Write Below syntax in PHP file to the server.
header('Access-Control-Allow-Origin: *');
Cheers....
Cheers....
No comments:
Post a Comment