Jquery JTable 错误
An error occured while communicating to the server.
<script type="text/javascript">
$(document).ready(function () {
//Prepare jtable plugin
$('#ProjectTableContainer').jtable({
title: 'Project Management System',
paging: true,
pageSize: 10,
sorting: true,
defaultSorting: 'projectName',
actions: {
listAction: '/administrator/ADMProject.aspx/ProjectListByFilter',
createAction: '/administrator/ADMProject.aspx/ProjectCreate',
updateAction: '/administrator/ADMProject.aspx/ProjectUpdate',
deleteAction: '/administrator/ADMProject.aspx/ProjectDelete'
},
fields: {
projectId: {
key: true,
create: false,
edit: false,
sorting: false,
list: false
},
projectName: {
title: 'Project Name',
width: '20%',
create: true,
edit: false,
sorting: true,
list: true
},
projectDescription: {
title: 'Description',
create: true,
edit: true,
sorting: false,
list: true
},
projectStartDate: {
title: 'Date Started',
type: 'date',
create: false,
sorting: false,
edit: false,
list: true,
displayFormat: 'yy-mm-dd'
},
projectEndDate: {
title: 'Date Ended',
type: 'date',
create: false,
sorting: false,
edit: false,
list: true,
displayFormat: 'yy-mm-dd'
},
userName: {
title: 'Owner',
create: true,
edit: false,
list: true,
options: '/administrator/ADMProject.aspx/GetUserName'
},
projectCreated: {
title: 'Date Created',
width: '8%',
type: 'date',
create: false,
edit: false,
list: true,
displayFormat: 'yy-mm-dd'
}
}
});
$('#ProjectTableContainer').jtable('load');
});
</script>
有什么问题?我找不到它的任何地方。我一直得到 "An error occured while communicating to the server."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论