Forum


10:10

30/07/2009

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...
02:29

Moderators
30/10/2007

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.
15:22

01/09/2008

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
12:26

30/07/2009

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?
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66