Is there a way to load a jQuery AJAX Enabled page from a external page? I’m making an app with phonegap and I need one page to be hosted online because it is going to be continually updated, but I cant seem to figure out how! I tried just linking it, but that didn’t work! Any ideas?
Share
Since you are working with PhoneGap you can set up a whitelist to work around the Cross-Origin-Policy. You have to maintain this whitelist specifically for each of your target platforms.
Check out this Guide (PhoneGap 1.9+):
http://docs.phonegap.com/en/1.9.0/guide_whitelist_index.md.html
If you are on an older version of PhoneGap you have to pay attention to some inconsistencies regarding the white-list entry syntax amongst different platforms.
If you are using jQueryMobile, also check out this PhoneGap specific advices:
http://jquerymobile.com/test/docs/pages/phonegap.html