JQuery UI 选项卡 - 使用 AJAX 加载选项卡是“破坏性”的;一个插件
我有创建表格的页面: http://gupii.co.uk/rap/weekTable.php 我正在使用一个插件来添加过滤器功能:_http://gupii.co.uk/rap/js/mylibs/tablefilter.js
在 weekTable.php 中:
var theTable = $('#weekTable')
$("#filter").keyup(function() {
$.uiTableFilter( theTable, this.value );
})
当您直接在 weekTable 上时,这可以正常工作页面,但是当我将页面加载到 JQueryUI 选项卡并尝试使用过滤器时,我收到此错误:
Uncaught TypeError: Object function ( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context );
} has no method 'uiTableFilter'
这是怎么回事,为什么我收到此错误?
我试图加载的页面是 _http://gupii.co.uk/rap/guilda.php (选项卡:本周)如果有帮助的话
(抱歉发布了比我应该发布的链接更多的链接,但我认为这会有所帮助在诊断问题时)
I have page that creates a table: http://gupii.co.uk/rap/weekTable.php and I'm using a plugin to add a filter functionality: _http://gupii.co.uk/rap/js/mylibs/tablefilter.js
In weekTable.php:
var theTable = $('#weekTable')
$("#filter").keyup(function() {
$.uiTableFilter( theTable, this.value );
})
This works fine when your directly on the weekTable page, but when I load the page into a JQueryUI tab and try and use the filter I get this error:
Uncaught TypeError: Object function ( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context );
} has no method 'uiTableFilter'
Whats going on here, why am I getting this error?
The page I'm trying to load into is _http://gupii.co.uk/rap/guilda.php (tab:This Week) if it helps
(apologies for posting more links than I should but I thought it would be helpful in diagnosing the problem)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个:
http://api.jquery.com/live/
Try this:
http://api.jquery.com/live/