View Full Version : Q: Form.submit in a generic fashion?
jay@moduscreate.com
16 Apr 2007, 5:16 PM
How does one use form.submit to do a real old fashioned form.submit?
jack.slocum
16 Apr 2007, 5:47 PM
It doesn't do old fashioned submits. But you can always call submit on the dom node.
Ext.getDom('your-form').submit();
jay@moduscreate.com
16 Apr 2007, 5:58 PM
It doesn't do old fashioned submits. But you can always call submit on the dom node.
Ext.getDom('your-form').submit();
I tried that, but i'm struggling on how to get the id from the form. it's been a looooooooooooooong day. Need some ~o)
It creates: <form id="ext-gen24" class="x-form" method="post">
i had to revert back to old school.
var x = document.getElementById('agreementForm');
x.firstChild.submit();
Thanks. :)
jack.slocum
16 Apr 2007, 6:52 PM
form.el.dom.submit() ?
jay@moduscreate.com
17 Apr 2007, 5:19 AM
No, just working under the assumption that the form is always the firstChild of element "agreementForm". Seems to work.
The more i work w/ this the more i want to make it 100% ajax. more ~o) ~o) ~o) ~o) ~o)
reading xcart's code gives me teh brain pain.
justheatingup
17 Apr 2007, 6:38 AM
Can I get a discount on the EXTJS site? :)
jay@moduscreate.com
17 Apr 2007, 6:40 AM
:-\
adult toy store =P~
justheatingup
17 Apr 2007, 8:11 AM
CAll it what you want ;) Coupon code please B)
lol >:)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.