Jscrollpane分页
好吧,我是 jscrollpane 的新手,但到目前为止我一直做得很好,直到我将多个 Mysql 结果放在一个小 div 和一个分页类中。
滚动条第一次出现,但是一旦我单击第 2 页,并获取新行,滚动条就不会出现,这是分页方法,
$('#pagination a').click(function(){
$.getJSON($(this).attr('href')+'&isajax=true', function(json){
$('#mytableinfo').html(json.datos);
}
);
所以之后我需要重新初始化我的 jscrollpane 所以我尝试按照 jscrollpane 提供的方式执行此操作文档。
var pane = $('.scroll-class')
var api = pane.data('jsp');
api.reinitialise();
我看不到任何滚动条不会出现的东西,这让我发疯。
如果我尝试在隐藏显示 div 后重新初始化它确实有效,但在更改整个 div 内容后我将无法工作
Well im new to jscrollpane but ive been doing well so far until i placed multiple Mysql Results within a small div and a pagination class.
The scrollbar apears the first time, but as soon as i click page 2, and get the new rows the scrollbar wont appear, this is the pagination method
$('#pagination a').click(function(){
$.getJSON($(this).attr('href')+'&isajax=true', function(json){
$('#mytableinfo').html(json.datos);
}
);
so after that i need to reinitialise my jscrollpane so i try to do this as provided by jscrollpane documentation.
var pane = $('.scroll-class')
var api = pane.data('jsp');
api.reinitialise();
and i cant see anything the scrollbar just wont appear and its driving me nuts.
if i try to reinitialize after hiding-showing divs it does work , but i wont work after changing the whole div content
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 autoReinitialise 参数:
Try with the autoReinitialise parameter: