I unable to understand how to apply a paging for a dynamically generated table below is my code
$.ajax({
type: 'GET',
url: services.settings.dailydata,
data: "inviteId_=" + inviteId + "",
success: function (data) {
var Location = data;
var tr;
for (var i = 0; i < Location.length; i++) {
tr = tr + ""; ";
tr = tr + "" + Location[i].item + " ";
tr = tr + "" + Location[i].itemname + " ";
tr = tr + "" + Location[i].itemprice.toFixed(2) + " ";
tr = tr + "" + Location[i].Unit + " ";
tr = tr + "
};
document.getElementById('stc_d').style.display = "block";
document.getElementById('tbl_data').innerHTML = "" + "
";
| item | "itemname | " + "itemprice | " + "Unit | "+ "
|---|
},
error: function (e) {
navigator.notification.alert('Please enter valid details');
}
});
so can any one tell me how and where to implement paging ?
Ashutosh MundPosted Apr 19, 2017, 4:28 PM