$(…).tabs is not a function

后端 未结 8 1671
隐瞒了意图╮
隐瞒了意图╮ 2021-01-07 22:42

I have this code on two pages on my site, but at one page the function doesn\'t work. Firebug shows me \" $(...).tabs is not a function \". I don\'t understand why, can anyo

相关标签:
8条回答
  • 2021-01-07 23:11

    You have relative paths to javascript files:

    javascript/jquery-ui-1.9.2.custom.min.js

    change them to absolute paths because you're using mod_rewrite module

    /javascript/jquery-ui-1.9.2.custom.min.js

    In first link the server is looking to the directory

    http://www.invat-online.net/javascript/my_js_file.js (which exists)

    but in the second one the path will be

    http://www.invat-online.net/variante-explicate-limba-romana/javascript/my_js_file.js which do not exists

    0 讨论(0)
  • 2021-01-07 23:13

    In my case:

    I was using

    jquery-ui-1.10.3.minimal.min.js
    

    instead of

    jquery-ui-1.10.3.custom.min.js
    

    minimal version does not include ui.tabs.js, hence no ui.tabs function. Hope this helps someone else out there

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