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
afterSubmit Event not working
14/12/2009
13:59
Avatar
charles
Guest
Guests

myevent function is like:

in edit options

{height:280,reloadAfterSubmit:true,url:"/adeltech/user/edit",afterSubmit:function(serverResponse, postdata)
{
alert(serverResponse.responseText+" post"+postdata.username);

}}, // edit options

this event alerts the required values properly but after alert a error is showing in firebug like:

aa is undefined
I am using the jqgrid version used in the online demo
all other functions are working properly
can any one help??

15/12/2009
09:48
Avatar
charles
New Member
Members
Forum Posts: 2
Member Since:
15/12/2009
sp_UserOfflineSmall Offline

myevent function is like:

in edit options

{height:280,reloadAfterSubmit:true,url:"/adeltech/user/edit",afterSubmit:function(serverResponse, postdata)                                           {                                                alert(serverResponse.responseText+" post"+postdata.username);

}}, // edit options

this event alerts the required values properly but after alert a error is showing in firebug like:
aa is undefined
I am using the jqgrid version used in the online demo
all other functions are working properly
can any one help?? pls...............................................
15/12/2009
18:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Sorry to say this for 10000.... time - did you have read the documentation carefully?

http://www.trirand.com/jqgridw.....ditgridrow

The text say:

fires after response has been received from server. Typically used to display status from server (e.g., the data is successfully saved or the save cancelled for server-side editing reasons). Receives as parameters the data returned from the request and an array of the posted values of type id=value1,value2.
When used this event should return array with the following items [success, message, new_id]
where
success is a boolean value if true the process continues, if false a error message appear and all other processing is stoped.
new_id can be used to set the new row id in the grid when we are in add mode.
afterSubmit : function(response, postdata)
{

return [succes,message,new_id]
}

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.

16/12/2009
04:15
Avatar
azhong
Guest
Guests

good!!!

thx!!!

16/12/2009
04:52
Avatar
charles
New Member
Members
Forum Posts: 2
Member Since:
15/12/2009
sp_UserOfflineSmall Offline

Hi Tony

I am very much thank full to you for giving me such a nice reply quickly.

I follow the documentation in pdf downloaded from your site earlier.

That is why this misunderstanding happens.

Any way those want to refer the documentation, always go for the latest documentation

available here: http://www.trirand.com/jqgridwiki/

Regards

Charles.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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