手机版二维码
> 在线咨询
var pagesize = 10;
var page = thispage();
$(document).ready(function () {
ajaxList(page);
});
function ajaxList(currentpage) {
if (currentpage != null) page = currentpage;
$.ajax({
type: "get",
dataType: "json",
data: "oper=ajaxList&parentid=0&classid=0&page=" + currentpage + "&pagesize=" + pagesize + "&time=" + (new Date().getTime()),
url: "/message/ajax.aspx",
error: function (XmlHttpRequest, textStatus, errorThrown) { alert(XmlHttpRequest.responseText); },
success: function (d) {
switch (d.result) {
case '-1':
JumbotCms.Alert(d.returnval, "0", "top.window.location='/default.aspx';");
break;
case '0':
JumbotCms.Alert(d.returnval, "0");
break;
case '1':
$("#ajaxList").setTemplateElement("tplList", null, { filter_data: false });
$("#ajaxList").processTemplate(d);
$("#ajaxPageBar").html(d.pagerbar);
ActiveCoolTable();
break;
}
}
});
}