views:

540

answers:

2

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

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?

+1  A: 

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.

luminarious
+1  A: 

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" />
dkris