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
editrow + aftersavefunc + success + onerrorfunc
06/11/2009
02:45
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

Hello,

I use the version 3.5.

I use editrow and I don't understand how work onerrorfunc, on succes and aftersavefunc. Yell

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

Regards.Kiss

Missa

06/11/2009
08:00
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

Ok i find,I write : success(), but we must write success without ()Yell

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 Laugh

Regards

Missa

06/11/2009
09:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

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.

09/11/2009
04:49
Avatar
missa
france
Member
Members
Forum Posts: 104
Member Since:
20/02/2009
sp_UserOfflineSmall Offline

thank you Tony,Cool

I anderstand the difference between aftersavefunc and errorfunc.

Thank you for your help!

regards,

MissaKiss

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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