我使用的jqgrid插件jQuery和jQuery UI,我想改变一个DOM事件的AJAX网址。 这是jqGrid的表instatiation:在Jquery Plguin,JQGrid中更改AJAX url?
jQuery("#list").jqGrid({
url:'AJAX/JSON/json_member_mail.aspx',
datatype: 'json',
mtype: 'GET',
colNames:['','Title', 'from','message',''],
colModel :[
{name:'checkbox', index:'pms.pm_id', width:15, gridstate:'hidden',sortable:false} ,
{name:'title', index:'pmthreads.pmthread_subject', width:140},
{name:'from', index:'pms.pm_authoruser_id', width:110, align:'center',classes:'mofo_id' } ,
{name:'message', index:'message', width:445, sortable:false},
{name:'tasks', index:'tasks', sortable:false, width:65, align:'right'}
],
pager: '#pager',
rowNum:20,
rowList:[10,20,30],
width: '100%',
height: '800',
sortable:true,
sortname: 'someting that makes sense to the cragted mysql query ',
sortorder: 'desc',
viewrecords: true,
caption: 'Mail'
});
现在这个页面会显示在我的程序的用户的邮件收件箱......现在我想改变URL以member_mail_sent显示发件箱,但后来我也愿意需要更改colName和colModel,sortname等...
我记得看到一些让文档更容易的东西,但现在我无法在任何地方找到它。