javascript - JQuery JScroll for Table -
currently working jquery plugin: jscroll implement lazy load table. but, don't know why, after use following code:
$('#table-modify2').jscroll();
the lazy load still not working. not working here means display of data every time load page.
for information, table's data come database , use jquery ajax data.
here code:
$(document).ready(function(){ $('#table-modify2').tablesorter(); $('#table-modify2').jscroll(); bericht(); }); function bericht() { $.post("func/bericht.php", { }, function(data) { con = displayresult(data); $('#table-modify2').find('tbody').html(con); $('#table-modify2').trigger('update'); //$("#table-checkout").html(con); }); } function displayresult(data) { con = ""; row = data.split("_"); for(i=0,j=row.length-1;i<j;i++) { col = row[i].split("#"); con += "<tr>"; for(k=0,m=col.length;k<m;k++) { if(col[k] == "internal" || col[k] == "external" || col[k] == "dp") { if(col[k] == "internal") { con += "<td class=small><input id = int type =radio checked disabled></td>"; con += "<td class=small></td>"; con += "<td class=small></td>"; } else if(col[k] == "external") { con += "<td class=small></td>"; con += "<td class=small><input id = int type =radio checked disabled></td>"; con += "<td class=small></td>"; } else { con += "<td class=small></td>"; con += "<td class=small></td>"; con += "<td class=small><input id = int type =radio checked disabled></td>"; } } else { con += "<td>"+col[k]+"</td>"; } } con += "</tr>"; } //con += "</table>"; return con; }
is there idea? in advance
Comments
Post a Comment