0

Is there a way to test whether a given device is specifically on the jQuery Mobile Supported Platforms list, ideally with the support grade (A, B, C)?

I'm aware of user agent matching (along with it's flaws). That's not what I'm after. If there were something similar to jQuery Support in jQuery Mobile, indicating that the device is a targeted mobile platform and which features are supported, that would be ideal.

Community
  • 1
  • 1
Eric J.
  • 139,555
  • 58
  • 313
  • 529

1 Answers1

3

You can use the following to find out if browser is gradeA :

$.mobile.gradeA()

returns true / false

Manse
  • 36,627
  • 9
  • 75
  • 105
  • Cool. Will that *only* return true for mobile browsers, or would e.g. a desktop browser that meets the general Grade A criteria also return true? Is there better documentation than http://jquerymobile.com/test/docs/api/globalconfig.html? – Eric J. Apr 13 '12 at 16:49
  • Desktop browsers WILL also return true / false based on the criteria. http://jsfiddle.net/Bxt9D/ – davehale23 Jun 22 '12 at 17:05