INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

$.browser.msie is undefined?

$.browser.msie is undefined?

(OP)
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

RE: $.browser.msie is undefined?

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

RE: $.browser.msie is undefined?

(OP)
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

RE: $.browser.msie is undefined?

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

RE: $.browser.msie is undefined?

(OP)
Well at least I have finally found a great place to get some working polyfills : http://html5please.com/

Still trying to get my head round the file upload mechanism, but at least my form validation is now working across the board smile

"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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close