Forum


13:25

27/03/2009

i have the following code to build grid:
jQuery("#grid").jqGrid({
url:'.....',
datatype: "json",
colNames:[ ........],
colModel:[ ........ ],
rowNum:5,
altRows:true,
imgpath: gridimgpath,
mtype: "POST",
pager: jQuery('#pager'),
sortname: 'oferta',
viewrecords: true,
caption:"Cargas",
hidegrid: false,
width: 800,
height: 300,
multiselect: false,
loadui:"disable",
sortorder: "asc"
}).navGrid("#pager",{search:false,edit:false,add:false,del:false,refresh:false});
All ok, but when i try to get the rowNum in a PHP file i get an empty value:
$page = $_GET['page']; // get the requested page
$limit = $_GET['rows']; // THIS VAR GET EMPTY VALUE
$sidx = $_GET['sidx']; // get index row - i.e. user click to sort
$sord = $_GET['sord']; // get the direction
Anybody can help me?
Thx, regards!
04:18

27/03/2009

Its really neccesary post all PHP code?
At top of my file i have:
$page = $_GET['page']; // get the requested page
$limit = $_GET['rows']; // get how many rows we want to have into the grid
echo “limit: “.$limit;
$sidx = $_GET['sidx']; // get index row - i.e. user click to sort
$sord = $_GET['sord']; // get the direction
rest of code here…
i printed $limit var and i get a empty value.
EDIT:
I tested all grid vars ($page, $limit, $sidx, $sord) and all post empty values at PHP file.
My actual PHP file is:
$page = $_GET['page'];
echo “page: “.$page;
$limit = $_GET['rows'];
echo “limit: “.$limit;
$sidx = $_GET['sidx'];
echo “sidx: “.$sidx;
$sord = $_GET['sord'];
echo “sord: “.$sord;
Regards
Most Users Ever Online: 715
Currently Online:
89 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