开发者

XCode & Phonegap with $.get function

开发者 https://www.devze.com 2023-04-13 08:50 出处:网络
I have a problem, I created a Webapps into HTML and JavaScript to create a native iPhone with PhoneGap. This works properly on Safari browser and iPhone, when compiling with xcode, I have a problem wi

I have a problem, I created a Webapps into HTML and JavaScript to create a native iPhone with PhoneGap. This works properly on Safari browser and iPhone, when compiling with xcode, I have a problem with the $.get function that does not receive data from my external server. example code:

$.开发者_StackOverflow社区get('http://www.mydomain.com/retriveinfo.php', function(data) {
    document.getElementById("result").innerHTML='data';
    jQT.goTo($('#page-result),'slideleft');
});

you can not use $. get? there an alternative? IOS Simulator bug? Please Help Me.


I solved using the $. getJSON that allows cross-domain calls

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号