开发者

XCode & Phonegap with $.get function

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜