Forum



15:14

24/10/2012

Can't call the action with the json,please help,thanks!
i want't get the data from server instead of local,so i set the datatype to "json",the url to the action on the server "<c:url value='/car/jqGrid_getJsonData.action' />",the action is confirm correct,there is test on browser,also i change the action url
"http://localhost:8080/eapsoft/car/jqGrid_getJsonData.action",open in the browser it's correct and return data,but with the jqGrid url ,it's invalid,not call!
please help,what's the problem? thanks all!
here is the code:
<link href="/eapsoft/css/core/jqGrid/ui.jqgrid.css" rel="stylesheet" type="text/css" />
<link href="/eapsoft/css/core/jqGrid/ui-lightness/jquery-ui-1.9.0.custom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/eapsoft/js/jqGrid/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/eapsoft/js/jqGrid/i18n/grid.locale-en.js" ></script>
<script type="text/javascript" src="/eapsoft/js/jqGrid/jquery.jqGrid.min.js"></script>
$("#gridTable").jqGrid({
url:"<c:url value='/car/jqGrid_getJsonData.action' />",
datatype: "json",
mtype: "get",
Most Users Ever Online: 715
Currently Online:
17 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66