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
addRow
03/08/2009
10:10
Avatar
salvo90
Member
Members
Forum Posts: 5
Member Since:
30/07/2009
sp_UserOfflineSmall Offline

Hi, can someone show me an example of the AddRow command?

I want to redirect the posted data to the 'insert.php' page, using those data for example:

first = "one"

second = "two"

third = "three"

I've tried this code:

    var datarow = {first:"one",second:"two",third:"three"};
    jQuery("#tabb").addRowData(rowid,datarow, {url:'insert.php');

But without result...

04/08/2009
02:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

04/08/2009
05:59
Avatar
salvo90
Member
Members
Forum Posts: 5
Member Since:
30/07/2009
sp_UserOfflineSmall Offline

Sorry, but it was not usefull for me. I can't see any example like the wanted one.

I'm searching one example like

jQuery(”#tabb”).addRowData(rowid,datarow, {url:'insert.php'});

Where i can read the correct sintax of the url replacing parameter

04/08/2009
15:22
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

The method syntax I see in the manual is:

addRowData
rowid, data, position (first, last, before, after - default last), srcrowid (source row, applies only when position is either before or after)

I don't see where a url is used.  Are you trying to add to the grid AND update through the server  at the same time?  If you you could update directly to the server with an AJAX call and then requery the grid OR update the grid and then update your server with an AJAX call.

Or, maybe I don't understand what you are trying to accomplish

05/08/2009
12:26
Avatar
salvo90
Member
Members
Forum Posts: 5
Member Since:
30/07/2009
sp_UserOfflineSmall Offline

I want to create a new row, and then register the adding into the database, but posting data to another page, different from the one declared in the edit url parameter. Maybe i can try

addrow –> saverow

?

So, the structure in this:

adding a new row ---> post data to a different PHP page from that declared in editurl parameter ---> execute a query with the posted data.

I think the problem is the redirecting to another page, using the saverow parameter. Can someone include also a pratic example with a 'redirect.php' page?

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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