Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery latest $.browser [duplicate]

Tags:

jquery

Possible Duplicate:
Is jQuery $.browser Deprecated?

Did the latest jQuery library change $.browser?
When i run this (fiddle) in firefox, im getting an error in console:TypeError: obj is undefined

like image 277
t q Avatar asked Jan 24 '13 15:01

t q


3 Answers

It was deprecated for a long while. And has been removed since 1.9.

To still be able to use the $.browser you should add the following JS, or visit the project on github:

<script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>

See the version 1.9 changelog:
http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/

More info on upgrading
http://jquery.com/upgrade-guide/1.9/

like image 176
Niels Avatar answered Oct 19 '22 23:10

Niels


you need to use the migration plugin. jQuery.browser was deprecated in 1.3 and removed in 1.9. Please read the upgrade guide.

like image 24
Arun P Johny Avatar answered Oct 19 '22 23:10

Arun P Johny


Per the jQuery 1.8 release notes and ticket 9835 it's been officially deprecated.

like image 29
j08691 Avatar answered Oct 19 '22 22:10

j08691