PDA

View Full Version : Form Help



bsmithinghamisd
22 Apr 2011, 10:57 AM
I'm working through this example here. http://dev.sencha.com/deploy/dev/examples/form/xml-form.html

If there are no errors, how can I make the form submit via POST to a script, causing the page to redirect?

I'm sure this is super simple.

bsmithinghamisd
22 Apr 2011, 12:19 PM
anyone? this has to be simple.

bsmithinghamisd
25 Apr 2011, 7:48 AM
I finally figured it out. Edit the form submit to include a success handler.



fs.getForm().submit({
url:'pathto/errors.xml' (http://www.sencha.com/forum/'pathto/errors.xml'),
waitMsg:'Saving Datas...',
submitEmptyText: false,
success: function() {
window.location.href = 'http://www.yahoo.com';
}