开发者

Android browser crashes on Ajax calls, when viewport meta tag is defined

I am building a web app, which is intended to run on the Android browser.

开发者_如何学Go

When I have a webpage that contains any kind of viewport meta tag, like this:

<meta name="viewport" content="width=400"/>

My webpage crashes on ajax calls. It happens when using the emulator, the actual browser on my nexus one, and on a droid (all running Android 2.1).

Without the meta tag, the ajax calls run as they should.

Any ideas?


You may try using the below meta tag.

I have successfully used both these meta tags and AJAX calls did work for me on the Nexus One.

<meta name="HandheldFriendly" content="true" />


Also, it's recommended these days that you set content="width=device-width" and style the page with CSS to look at least tolerable. Otherwise you get a ridiculously zoomed-in page on the iPad.

Of course, never mind if you already have a way of dealing with that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜