Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Add and Edit
14/12/2011
04:00
Avatar
nate215
Member
Members
Forum Posts: 5
Member Since:
14/12/2011
sp_UserOfflineSmall Offline

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. 

19/12/2011
16:51
Avatar
bpcm
Member
Members
Forum Posts: 6
Member Since:
09/12/2011
sp_UserOfflineSmall Offline

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

19/12/2011
19:33
Avatar
nate215
Member
Members
Forum Posts: 5
Member Since:
14/12/2011
sp_UserOfflineSmall Offline

Thanks for the reply, i understand what you mean I guess I am getting confused as to how i TAG in the php action file for editing. So it knows what to do when its add or edit. I set up one file but i kept getting this error:

error Status: 'error'. Error code: 500
20/12/2011
01:31
Avatar
adamwatkins
Member
Members
Forum Posts: 4
Member Since:
20/12/2011
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information