Forum


04:00

14/12/2011

Hi
I am new to JQgrid ihave managed to set up my grid and get data from my sql server. I have also added the nav bar with the Add and Edit buttons which create a form on selection by making the fields editable.
My problem is the next step, I am sure how to create the server.php file for the edit url. I understand how to post data by inserting or updating but unsure how this works with grid.
16:51

09/12/2011

Hello,
jqGrid sends post data back to your server at the specified URL that you set in the config options. If I were to set the url to 'rest/jqgrid' it would send your JSON or XML post/put to your server at 'yourservername.com/rest/jqgrid'. Youd need something on your server to listen for those requests at that location.
Hope this makes sense,
bpcm
01:31

20/12/2011

That error code means there is a problem in the PHP file that iis "listening", not the grid in this case. At the top of the php file enable error reporting like this:
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
?>
Then retry the edit and this time you should see some other useful info as to what the problem is.
Could be something as simple as a missing ";" at the end of a line.
Most Users Ever Online: 715
Currently Online:
46 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