开发者

getting JSON from PhoneGap application ?

i'm trying to send a getJson call from my app to get an external JSON from PHP file. all i'm getting is a gray empty 开发者_如何学编程screen ? can anyone tell me what's the problem or at least how can i debug to get the problem

getting JSON from PhoneGap application ?

here also attached the PHP file running !!

getting JSON from PhoneGap application ?


You need to provide more Information . Try to debug using Firebug , This is available for both chrome and firefox and since your using html run it in your browser and see what you get.

Do console.log(data); and see what is being outputted in your firebugs console tab. You might be running into some cross domain issue too. Use jquery ajax jquery JOSNP to over come this. just put data: jsonp .

Hope this helps you , please provide more information.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜