TypeError: $.browser is undefined

后端 未结 9 2088
甜味超标
甜味超标 2020-11-28 22:27

I am using msdropdown image combo box to create dropdown select options. when i run this code locally on my PC, everything works great. But when i run it on go daddy server

相关标签:
9条回答
  • 2020-11-28 23:24

    Replace your jquery files with followings :

    <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>

    0 讨论(0)
  • 2020-11-28 23:24

    Somewhere the code--either your code or a jQuery plugin--is calling $.browser to get the current browser type.

    However, early has year the $.browser function was deprecated. Since then some bugs have been filed against it but because it is deprecated, the jQuery team has decided not to fix them. I've decided not to rely on the function at all.

    I don't see any references to $.browser in your code, so the problem probably lies in one of your plugins. To find it, look at the source code for each plugin that you've referenced with a <script> tag.

    As for how to fix it: well, it depends on the context. E.g., maybe there's an updated version of the problematic plugin. Or perhaps you can use another plugin that does something similar but doesn't depend on $.browser.

    0 讨论(0)
  • 2020-11-28 23:29

    $().live(function(){}); and jQuery.browser is undefined in jquery 1.9.0 - $.browser was deprecated in jquery update

    sounds like you are using a different version of jquery 1.9 in godaddy so either change your code or include the migrate plugin http://code.jquery.com/jquery-migrate-1.0.0.js

    0 讨论(0)
提交回复
热议问题