用Flexigrid的话,你前面肯定有类似代码:
[code="java"]var grid = $("#fax-list").flexigrid({
url: 'fax!queryPage.action',
dataType: 'json',
colModel : [
{display: '日期', name : 'createdAt', width : 120, align: 'center'},
{display: '传真来自', name : 'fax', width : 120, align: 'center'},
{display: '传真主题', name : 'title', width : 284,align: 'center'},
{display: '页数', name : 'pages', width : 30, align: 'center'},
{display: '状态', name : 'readStatus', width : 40, align: 'center',process:status},
{display: '查看传真', name : 'id', width : 60, align: 'center',process:link}
],
buttons : [
{name: '转发', onpress : forward},
{name: '删除', onpress : remove}
],
resizable : false,
qtype: 2,
usepager: true,
useRp: false,
rp: 10,
width: 792,
height: 302
});[/code]
而你的弹出窗口要做的不是重新发起ajax请求,因为Flexigrid内部已经有了发起请求部分,你的Dialog里面的按钮触发后要做的事情是:[b]搜集新的查询条件,组织成json对象,如:[/b],[code="javascript"]condition = {name : ''}[/code]然后以此参数调用flexReload 方法中,如下:
[code="java"]grid.flexReload(condition) [/code]