28 Jan 2013 3:16 PM #1
Setup listeners for dynamically loaded form.
I am loading in forms via ajax but need to know how to then apply event listeners after they have been loaded. I want to capture the submit to preventDefault() and submit form via ajax.
30 Jan 2013 10:18 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
When you say a form, is it just HTML or is it Ext.form.Panel?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
30 Jan 2013 10:33 AM #3
6 Feb 2013 9:41 PM #4
I am loading forms dynamically through ajax. After I add the form to the Container via setHtml() I want to be able to listen for the submit and handle through ajax.