$().live(function(){});
and jQuery.browser
is undefined
in jQuery 1.9.0
If I user jQuery 1.8.3 instead of jquery 1.9.0 it is working fine in my project.
And what are the functions undefined and why?
$().live(function(){});
and jQuery.browser
is undefined
in jQuery 1.9.0
If I user jQuery 1.8.3 instead of jquery 1.9.0 it is working fine in my project.
And what are the functions undefined and why?
Please read the jQuery upgrade Guide, in 1.9 release they have removed all the deprecated methods from previous releases. But they have provided a migration plugin to help the developers during the migration period.
The jQuery.live was deprecated in v1.7.0 in favour of jQuery.on, please use this in your code.
You can include the migrate plugin
The live function is deprecate you have to use on
instead of live
.live()
has been removed: http://api.jquery.com/live/. Use .on()
instead: http://api.jquery.com/on/:
.browser()
has been removed as well: http://api.jquery.com/jQuery.browser/
Because they are deprecated!
instead of .live()
you should use .on()
jQuery.browser
Returns: PlainObjectversion deprecated: 1.3, removed: 1.9
Description: Contains flags for the useragent, read from navigator.userAgent. We recommend against using this property; please try to use feature detection instead (see jQuery.support). jQuery.browser may be moved to a plugin in a future release of jQuery.
© 2022 - 2024 — McMap. All rights reserved.