I am trying to write a simple phonegap + jqm app that gets a page from remote server.
$.mobile.loadPage("http://mydomain.com/Mobile/MyPage.aspx")
.done(function () { alert('done'); })
.fail(function () { alert('fail'); });
});
I set the following options:
$.support.cors = true;
$.mobile.allowCrossDomainPages = true;
Added the following header:
Access-Control-Allow-Origin:*
Everything works fine when I try it in desktop browsers (ff/chrome/safari) but it doesnt work on my iphone or in the iphone simulator.
Any ideas?