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
Simple Example of how to save data to database?
15/04/2009
04:41
Avatar
escom98
Member
Members
Forum Posts: 6
Member Since:
14/04/2009
sp_UserOfflineSmall Offline

Does anyone have a simple working example of how to save the data to the database with ajax?  Thanks!

15/04/2009
04:51
Avatar
escom98
Member
Members
Forum Posts: 6
Member Since:
14/04/2009
sp_UserOfflineSmall Offline

To clarify, I'm using the latest Alpha version 3.5.  Any help or suggestions would be greatly appreciated.  Thanks!

16/04/2009
03:07
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Currently no - but it depends which is your server side language - PHP, ASP ....

In princip for every add/edit/delete the data is posted to the server. You will need to configure the url -where your save should be. In this file (or service) you should obtain the parameters from the post (you should known what to obtain) and save, update or delete the needed data.

As first step you need to known how to obtain parameters from ajax request in your prefered server language and how to make query's to the database.

Since jqGrid can be used with any server side language we do not provide examples of this, but it will be good to do in the future documentation.

Best Regards

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

17/04/2009
07:03
Avatar
escom98
Member
Members
Forum Posts: 6
Member Since:
14/04/2009
sp_UserOfflineSmall Offline

Thanks Tony.  There were a couple of posts in the forum that helped a little, but it would be great to provide simple working examples of how to interact with the database in various languages.  I finally figured out how to do it and would be happy to provide a simple working example in php if anyone's interested.  It's nothing special but is basic and it works.

24/04/2009
10:40
Avatar
HairyCream
New Member
Members
Forum Posts: 1
Member Since:
24/04/2009
sp_UserOfflineSmall Offline

escom98,

As a web developer newbie I'd definitely be interested in seeing a simple working example in php...

And my admiration goes to Tony for a fantastic job!

- Mike

28/04/2009
16:58
Avatar
mikmikus
Member
Members
Forum Posts: 5
Member Since:
24/04/2009
sp_UserOfflineSmall Offline

Hi, escom98

I am new jqgrid so if you post a sample of code in here would be really helpfull. 

Thank you,

<?php $live=0; while($live

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
112 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