View Full Version : Form submit with extjs
Xetolosch
5 Apr 2007, 2:39 AM
Hi,
I'm try to learn to use extjs...
But I have some problems.
How can I submit a form without a reload with extjs?
I have a nice extjs form, but without a submit-Button...
remote file: "modules/user/index.php"
links: "#modules/user/index.php" (I use the jquery history addon)
How can I submit the form-data without reload the hole page?
How can I read in the form data?
jay@moduscreate.com
5 Apr 2007, 2:48 PM
Hi,
I'm try to learn to use extjs...
But I have some problems.
How can I submit a form without a reload with extjs?
I have a nice extjs form, but without a submit-Button...
remote file: "modules/user/index.php"
links: "#modules/user/index.php" (I use the jquery history addon)
How can I submit the form-data without reload the hole page?
How can I read in the form data?
The theory is you create the button to exec a function that submits the form. The form submission hides the form and executes an XHR Call to retrieve the submitted data.
You don't need extjs to read form data from the DOM if that's what you're asking.
hope this helps.
cdomigan
9 Apr 2007, 8:41 PM
Xetolosch,
Since you're using jQuery, why not use the excellent Form Plugin (http://www.malsup.com/jquery/form/)? I use it for all my ajax-form needs :)
Chris
Xetolosch
9 Apr 2007, 10:32 PM
It works fine only with jquery and the jquery form plugin :)
I try to realize my website only with jquery first. Maybe I later add extjs for example for the Layout pr the dialogs...
Thanks for help so far.
or just use the updateManagers formUpdate()
that is easy as well...and working very well as far as I tried it
august
9 Sep 2007, 11:30 PM
or just use the updateManagers formUpdate()
that is easy as well...and working very well as far as I tried it
any one can post the complete codes for this question an an end ?
my test is:
simple.addButton('Save', function(){
if (simple.isValid()) {
Ext.MessageBox.alert('Success', 'You have filled out the form correctly.');
var ar = this.getValues();
var ret = {};
for(var i in ar)
{
ret[decodeURIComponent(i)] = decodeURIComponent(ar[i]);
alert(ret[decodeURIComponent(i)]);
}
}else{
Ext.MessageBox.alert('Errors', 'Please fix the errors noted.');
}
}, simple);
but how to use these submitted values?
JasonMichael
15 Nov 2007, 12:50 PM
This post is an example?
Pytte
15 Nov 2007, 1:10 PM
yea why is this here?
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.