Jquery 不显示分页的数据表

Jquery 不显示分页的数据表,jquery,jquery-ui,jquery-plugins,Jquery,Jquery Ui,Jquery Plugins,下面是我对jquerydatatables的问题的总结 a。我的JSP页面包含以下内容: <script type="text/javascript" src="../include/jquery.dataTables.js"></script> <script> $(document).ready(function() { $('#snapTable').dataTable({ "iDisplayLength": 5, "bPaginate":

下面是我对jquerydatatables的问题的总结

a。我的JSP页面包含以下内容:

<script type="text/javascript" src="../include/jquery.dataTables.js"></script>
<script> 
$(document).ready(function() {
$('#snapTable').dataTable({
   "iDisplayLength": 5,
   "bPaginate": true
   } );
 } )

  :

 function checkSnapStatus() {
 var url = "....";                               // some JSP servlet return HTML table id = 'snapTable'. HTML has a div called  progress_bar
 $.get(url, function(xml) {
            $('#statuscontent').html(xml);      // Put the return HTML into div id='statuscontent' on the body element
            var object = $('div.progress_bar'); // Get the div id=progress_bar elements =
            $.each(object, function() {
                            //process some stuff
                            });

     });

  }

$(文档).ready(函数(){
$('#snapTable')。数据表({
“iDisplayLength”:5,
“bPaginate”:正确
} );
} )
:
函数checkSnapStatus(){
var url=“……”;//一些JSP servlet返回HTML表id=“snapTable”。HTML有一个名为progress\u bar的div
$.get(url,函数(xml){
$('#statuscontent').html(xml);//将返回的html放入body元素上的div id='statuscontent'中
var object=$('div.progress\u bar');//获取div id=progress\u bar元素=
$.each(对象、函数(){
//处理一些东西
});
});
}
b。checkSnapStatus函数是从body.onload调用的。
在$.get函数之后,将显示记录(很多),但没有分页。我看不到“上一个”或“下一个”按钮。

您使用什么版本的datatables和jquery?我使用jquery 1.6.4和datatables 1.9.0以及以下工作-

$('#snapTable').dataTable({
    "bJQueryUI"      : true,
    "iDisplayLength" : 5,
    "sDom"           : 'T<"clear">lfrtip'
});
$('#snapTable')。数据表({
“bJQueryUI”:没错,
“iDisplayLength”:5,
“sDom”:“Tlfrtip”
});

Sori。。我的url后面有一个分号。