Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

$.browser.msie is undefined? 1

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi,

I seem unable to get $.browser.msie information, it returns as undefined.

And yes I know it was removed in JQ 1.9, but I use JQ 1.7 , so it should still work shouldn't it?

$.browser.version works, so why can't I get the browser.msie info when using IE?

Thanks,
1DMF.

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
I guess its possible the $.browser is not detecting newer versions of IE as IE (probably due to the fact that their user agents would not have been known at the time the method was coded) if it can't identify it as IE, there would be no msie flag available.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Thanks Phil,

It was IE11 I was testing with, so you could be right.

Well at least it is working with IE9, but I think I have no choice but to use Modernizr, as I cannot be sure this version of JQuery can catch all non-HTML5 browsers.

I'm always reluctant to load yet another JavaScript library, especially if the one I am already using can do the job, but I think on this occasion, I cannot rely on just JQuery.

At least Modernizr has the ability for you to selectively choose the tests you want, which helps keep the script to a minimum.

I had held of learning about 'HTML5 - CSS3' until I thought the world was ready, alas it seems IE9 is to Web 3.0 what IE6 was to Web 2.0, thanks M$!

Regards,
1DMF






"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
Indeed. It always takes MS a while to get up to par with new tech. When CSS4 comes up it will be the same story all over again.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Well at least I have finally found a great place to get some working polyfills :
Still trying to get my head round the file upload mechanism, but at least my form validation is now working across the board :)

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top