PDA

View Full Version : Validation ?



muncher
16 Aug 2010, 8:55 AM
I guess there is a standard/builtin validation mechanism for forms that are activated when a form is submitted. However, what I intend to do or know is that instead of submitting the form, I generate xml and send an ajax request to the server. How do I kick or enable or plug validation for this kind of thing ?

Animal
16 Aug 2010, 9:58 AM
Write a custom form Action class.

Look at what the provided Submit class does. You should be able to write a very small subclass which tweaks how the Ext.Ajax.request is made to submit XML instead of url-encoded form values.