PDA

View Full Version : Ext.Ajax.serializeForm()



caballero
21 Oct 2011, 10:52 AM
It is my understanding that Ext.Ajax.serializeForm() was removed from extjs4.

Is there an easy work around for serializing a non ext.form?
Right now I'm using jQuery, but I'm trying to leave it behind and I'm looking for a extjs equivalent.

Do I need to extend extjs to add it back in and how would I do this?

thanks

caballero
21 Oct 2011, 8:38 PM
there appears to be a serializeForm function listed under Ext.element, but I been completely unsuccessful in my attempts to access it.


//console.info(Ext.serializeForm('thisform'));
//console.info( Ext.get('thisform').serializeForm('thisform') );
//console.info( Ext.serializeForm(Ext.get('thisform')) );
console.info( Ext.select('#thisform').serializeForm('thisform') );

I get a function undefined in each case.
Can someone give me an extjs4 example of how to use serializeForm.

caballero
21 Oct 2011, 9:42 PM
i got it.

Ext.Element.serializeForm('thisform');

This would have been so easy if an example was provided.