Forum
Topic RSS
02:45
20/02/2009
OfflineHello,
I use the version 3.5.
I use editrow and I don't understand how work onerrorfunc, on succes and aftersavefunc. 
In fact, each function starts when I click on the row and not after? It's strange.
$('#modif_grid').editRow(invid,true,pickdates,success(),$url_select,'invid':+ret.invid,'type_action':'maj'},aftersavefunc(),onerrorfunc());
function onerrorfunc() {
alert('La mise à jour de la base de données c\\'est mal passée!');
}
function success() {
alert('La mise à jour de la base de données c\\'est bien passée!');
}
function aftersavefunc() {
alert('et voila, j\\'ai fini!');
}
can you help me please.
Regards.
Missa
08:00
20/02/2009
OfflineOk i find,I write : success(), but we must write success without ()
But I have always a problem with errofunc and aftersavefunc. in fact, in the wiki documentation it's written:
-
aftersavefunc: if defined, this function is called after the data is saved to the server. Parameters passed to this function are the rowid and the response from the server request.
-
errorfunc: if defined, this function is called after the data is saved to the server. Parameters passed to this function are the rowid and the the response from the server request.
And it's the same.
Can you explain me the difference between these 
Regards
Missa
09:46
Moderators
30/10/2007
OfflineHello,
You should remove the () from others too.
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.
Most Users Ever Online: 816
Currently Online:
41 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
Log In
Home
