PDA

View Full Version : Major web browsers test



Gunmen
12 Jul 2009, 8:15 AM
Hi,

Ext JS supports all major web browsers including:

Internet Explorer 6+
FireFox 1.5+ (PC, Mac)
Safari 3+
Opera 9+ (PC, Mac)Is there a way to test users' web browser? In other words, does Ext JS have an 'Ext JS proof' function? ... if there is no reponse or false return then the browser is not supported other wise we may assume the Ext JS (and the app) will work fine.

Thanks!

arthurakay
13 Jul 2009, 5:07 AM
other wise we may assume the Ext JS (and the app) will work fine.

That's a dangerous assumption even if there was such a method.

There are global properties (http://extjs.com/deploy/dev/docs/?class=Ext) to spot particular browsers, but saying that you could assume anything is simply a bad bet in any web programming language.

You can easily write your own method to check the current browser against the list of supported browsers... but whether or not your application works has little to do with ExtJS (or JavaScript) but rather if your code is written well.

VinylFox
13 Jul 2009, 5:32 AM
Generally bad practice to rely on browser versions when deciding what to present the user with.

As for those browsers that ExtJS supports - most of the browser support has to do with visual things, so its not like your application is going to explode the minute it finds a browser outside the supported range, things will generally work, but might look a tad funny at the worst.

Gunmen
13 Jul 2009, 10:14 AM
Hmm, okay. In that case I will use the noscript tag for those who might not have javascript enabled.

I was also thinking of showing a noscript message as default. If the user browser is okay then the javascript will overwrite this message immediately so that everything looks as planned (reversed is not possible). When the browser is not okay the script will stay on top.

I see an Ext JS proof function that returns a true / false or a number indicating the support level (or something like that) as nice to have.