views:

86

answers:

5

For the web site I'm building (targeted at mobile users) I'm thinking of using some Ajax controls. I'd like to know which mobile browsers do and don't support Javascript and Ajax, so I can know whether I've at least covered the majority of my target market (i.e. iPhone, Droid, Nokia, Opera). If not, I'll have to find an alternative way of presenting my forms...

Thanks!

+9  A: 

I've found ppk's list on quirksmode very helpful. It's not a 100% complete resource, but should cover most major browsers.

fencliff
+1 for the Quirksmode link (I included it in my answer too), it's a great resource.
Andy E
+1  A: 

The default browsers included in Android, iOS Safari (iPhone) and Nokia all support JavaScript and Ajax. As does Opera Mini. Be aware, though, that it can be disabled (at least, in Opera Mini and Safari).

Quirksmode has compatibility tables for mobile browsers. When in doubt, use feature detection and try and leave a fallback for when JavaScript is disabled.

Andy E
+1  A: 

You could use something like WURFL to find the capabilities of the mobile devices serverside and present a page accordingly.

Neothor
+1  A: 

Given "recent" phones, you'l find the answer is "most of them".

Along with the sites already listed, consider Device Atlas.

Noon Silk
+1 for Device Atlas but -1 for "Script Support". I've never seen anything more comprehensive. But "supported" for them means "enabled by default". Most (possibly all) BlackBerry devices are listed as not having Script Support, when in fact it disabled by default and can be enabled by the user (not that the majority of users know how to do it). That's always bothered me. But for native screen resolution and user agent info, though, it's an amazing resource!
Andrew
@Andrew what are you talking about? What is this "script support" you're talking about? I have no idea what your comment means.
Noon Silk
@silky The OP asked, "which mobile browsers do and don't support Javascript". Device Atlas lists "Script Support", but that is either misleading or inaccurate for many devices, such as BB, that **do** support JavaScript but are shipped with it disabled by default. It is a really great resource, but doesn't answer OP's question.
Andrew
@Andrew: Ah, thanks for clarifying. Yes, perhaps not such a great resource then.
Noon Silk
A: 

This may be slightly OT, but it's worth noting here, w.r.t. direct javascript support, that there's two types of mobile "browsers" - there are browsers with JS interpreters in them (like Opera Mobile, iPhone Safari, Droid) and then there are "thin clients" (like Opera Mini, Bolt, Skyfire etc.).

Thin clients support scripting, but do so in a different way. They have no JS engine on the phone - the JS is executed on the server and the result of that is then sent to the browser.

lucideer