JSONP not being fetched by browser on Android 2.2.2 using jQuery

淺唱寂寞╮ 提交于 2019-12-24 17:47:59

问题


I have run into a strange problem on Android, using jQuery mobile and Phonegap.

I am making JSONP requests to our server to fetch each pages content. The application works fine for a while and then suddenly the requests timeout. Using Weinre I am able to inspect the dom while the application is running on my device and can actually see the script tags being appended to the head by jQuery.

What is strange is that when I tail my Apache logs on the server I don't see the request coming through for the ones which timeout as If the browser doesn't send the request?

This all works fine in the browser and on different versions of Android.

Could it be a memory issue?

I am using jQuery Mobile 1.1rc1 + Phonegap 1.5.0 + jQuery 1.7.1

Thanks


回答1:


The problem lies with Phonegap 1.5, rolling back to 1.4 fixes the issue



来源:https://stackoverflow.com/questions/9837449/jsonp-not-being-fetched-by-browser-on-android-2-2-2-using-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!