JSONP不使用jQuery在Android 2.2.2是获取了浏览器 [英] JSONP not being fetched by browser on Android 2.2.2 using jQuery

查看:130
本文介绍了JSONP不使用jQuery在Android 2.2.2是获取了浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经遇到一个奇怪的问题的Andr​​oid ,使用 jQuery Mobile的的PhoneGap

我提出的 JSONP 请求我们的服务器提取每个网页的内容。该应用程序正常工作了一段时间,然后突然请求的暂停即可。使用Weinre我可以申请我的设备上运行时,检查DOM和实际上可以看到脚本标签的jQuery附加在头上。

奇怪的是,当我的尾巴我的Apache日志在服务器上我没有看到请求通过来为那些其超时为如果浏览器不发送请求<? / p>

这一切工作在浏览器和不同的Andr​​oid版本的罚款。

难道是内存问题?

我使用 jQuery Mobile的1.1rc1 + PhoneGap的1.5.0 +的jQuery 1.7.1

感谢


解决方案

问题在于PhoneGap的1.5,回滚到1.4修复该问题。

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

解决方案

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

这篇关于JSONP不使用jQuery在Android 2.2.2是获取了浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆