[jQuery] Re: Is it possible for jQuery define version of browser, for example IE 7.0?

2008-06-16 Thread Isaak Malik
Checking the version is more reliable by using object checking than the useragent string checking, or you can use both to increase the reliabilty. IE 7: if ( document.all && !window.opera && window.XMLHttpRequest && $.browser.msie ) var isIE7 = true; or in HTML which is much better: var isIE7

[jQuery] Re: Is it possible for jQuery define version of browser, for example IE 7.0?

2008-06-16 Thread Roncioso
I noticed Firefox 3rc3 with $.browser.version returns 1.9 (Gecko version?) On Jun 16, 8:38 am, mtest <[EMAIL PROTECTED]> wrote: > I know that jQuery can define browser: > $.browser.msie > $.browser.safari > $.browser.opera > $.browser.mozilla > but can I define version??? > IE 7.0 - ? > IE 6.0 -

[jQuery] Re: Is it possible for jQuery define version of browser, for example IE 7.0?

2008-06-16 Thread RobG
On Jun 16, 4:38 pm, mtest <[EMAIL PROTECTED]> wrote: > I know that jQuery can define browser: > $.browser.msie > $.browser.safari > $.browser.opera > $.browser.mozilla > but can I define version??? > IE 7.0 - ? > IE 6.0 - ? > IE 5.0 - ? Browser detection is almost always based on the user agent s

[jQuery] Re: Is it possible for jQuery define version of browser, for example IE 7.0?

2008-06-16 Thread mtest
also know that mozilla's version can get by $.browser.version

[jQuery] Re: Is it possible for jQuery define version of browser, for example IE 7.0?

2008-06-16 Thread Gordon
$.browser.version On Jun 16, 7:38 am, mtest <[EMAIL PROTECTED]> wrote: > I know that jQuery can define browser: > $.browser.msie > $.browser.safari > $.browser.opera > $.browser.mozilla > but can I define version??? > IE 7.0 - ? > IE 6.0 - ? > IE 5.0 - ?