PDA

View Full Version : Getting data from Non-ExtJS-Forms



Dumas
13 Oct 2010, 7:16 AM
Hi!

Does the library provide functions to get data out of "normal" html-forms, which are not generated by ext?

regards
Roland

Animal
13 Oct 2010, 7:18 AM
try



new Ext.form.BasicForm(theFormElement).getValues()

Condor
13 Oct 2010, 7:22 AM
Or:

var params = Ext.Ajax.serializeForm(theFormElement);
var values = Ext.urlDecode(params);

Animal
13 Oct 2010, 7:26 AM
Yes, you could use the lib, but it's not documented, therefore subject to change (But hopefully it won't change!)

Condor
13 Oct 2010, 7:32 AM
I'm not using Ext.lib.Ajax.serializeForm.

I'm using Ext.Ajax.serializeForm which is documented!

Animal
13 Oct 2010, 7:58 AM
Oh yes! I missed that one. :">

Dumas
14 Oct 2010, 4:34 AM
Cool, thx!

Ext.Ajax.serializeForm is what I'm looking for :)