使用post请求,就发的出去,并有数据返回
$.post("./getFrequentCaseInfo.action",{
"cid" : cid
},function(result){ }
为什么这样就不行?求解,配置文件都写了,绝对没错
$(document).ready(function(){
$("#caseList").flexigrid({
url : './getFrequentCaseInfo.action',
dataType : 'json',
colModel : [{
display : '案卷名称',
name : 'caseName',
width : 50,
sortable : false,
align : 'center',
hide : false
}, {
display : '全类名称',
name : 'fullClass',
width : 50,
sortable : false,
align : 'center',
hide : false
}, {
display : '案卷状态',
name : 'caseStatus',
width : 50,
sortable : false,
align : 'center',
hide : false
}, {
display : '案卷内容',
name : 'casDesc',
width : 50,
sortable : false,
align : 'center',
hide : false
}, {
display : '上报时间',
name : 'caseEnterTime',
width : 50,
sortable : true,
align : 'center',
hide : false
} ],
buttons : false,
method : "POST",
width : "auto",
height : 150,
errormsg : '查询错误,请重新尝试',
sortname : "caseEnterTime",
sortorder : "desc",
usepager : true,//是否分页
title : '频发案卷详情',
useRp : true,//是否可以动态设置每页显示的结果数
//rowId : 'id',
query : {"cid":cid},//搜索查询的条件,提交到服务器
page : 1,//默认当前页
rp : 15,//每页行数
showTableToggleBtn : true,
checkbox : false,
onSuccess : false,
onChangeSort : false,
singleSelect : false,
onRowSelect : false,
hideOnSubmit : false,
autoload : false
});
});
<table id="caseList">
</table>
var groupid=<%=request.getAttribute("groupid")%>;
$("#grid").flexigrid({
url : 'gzlx/GzlxOrgAction_groupMember.jspx?groupid='+groupid,
dataType : 'json',
colModel : [
{display : '', name : 'checkbox', width : 181, sortable : false, align : 'center', talign : 'center'},
{display : '联系人姓名', name : 'lxrxm', width : 181, sortable : false, align : 'center', talign : 'center'},
{display : '联系人电话', name : 'lxrdh', width : 536, sortable : false, align : 'center', talign : 'center'}
],
rp: 20,
width : 'auto',
height : document.documentElement.clientHeight - 165
});
我的这样子写 就能成功到后台了’
你的action 不带 namespace吗