10

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!

5 Answers 5

18

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

1
  • 1
    +1 for the Quirksmode link (I included it in my answer too), it's a great resource.
    – Andy E
    Jul 15, 2010 at 11:32
4

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

Along with the sites already listed, consider Device Atlas.

5
  • 1
    +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
    Jul 15, 2010 at 11:48
  • @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
    Jul 15, 2010 at 11:52
  • 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
    Jul 15, 2010 at 12:39
  • @Andrew: Ah, thanks for clarifying. Yes, perhaps not such a great resource then.
    – Noon Silk
    Jul 16, 2010 at 0:54
  • Note that DeviceAtlas now has very granular for JavaScript and HTML5 properties. There are now about 20 distinct JavaScript properties covering features such as support for XHR, console.log() and HTML5-related features such as SVG, indexeddb and web sockets. As an example, here is the page for the Samsung Galaxy S2 (check the JavaScipt and HTML5 section): deviceatlas.com/node/2410065 Jul 9, 2012 at 17:16
2

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.

1

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.

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.