PDA

View Full Version : Programmatically adding an onsubmit handler



ngd
24 Feb 2010, 8:21 PM
I have a regular HTML form (not ExtJS FromPanel) and before it is submitted, I would like my function to be called. I have tried:


Ext.get(formId).on('submit', function(){alert('here');});

But it doesn't work. Any help will be appreciated.

Thanks.

jay@moduscreate.com
25 Feb 2010, 5:53 AM
Your likelyhood of getting answers is greater if you post in the correct forum.

jay@moduscreate.com
25 Feb 2010, 5:53 AM
Moved to help