PDA

View Full Version : action parameter in form submit success handler



Tina G
30 Oct 2007, 1:22 AM
I am looking for some more information on form.submit's success handler. Particularly, I am interested in action parameter in


success: function(form_instance_create, action) { }

My server side when it identifies error condition (from the form details sent to server) it wants to send the error message and display the same (before form is hidden). For this I need to know about action parameter: what is it, how to use it for my purpose (sending error msg), what format does it support (on the forum there has been some mention of json string; would like to verify that) etc?

I have been looking for hints on this for quite a few hours now. Would greatly appreciate a quick response.

Animal
30 Oct 2007, 1:29 AM
The docs are not great on this right now. The next generation of docs in the Ext 2 branch will explain all.

For now, the action will contain a result property which is the evaluated object result of your JSON string.

Tina G
30 Oct 2007, 4:18 AM
Thanks. Greatly appreciate your response. I will look into API docs for 2.0