PDA

View Full Version : New Ext.form.Panel by dom form



xuan195
5 Feb 2012, 2:30 AM
I am trying to create a Basic Form from an existing markup. I did that in ExtJS 3.3 easily this way:
var formEl = document.createElement('form');

........

var formSubmit = new Ext.form.BasicForm(formEl, {
method:'POST',
fileUpload:true
});

It worked as Ext 3.3 Basic Form used to accept form id or element DOM as first param. But in Ext 4.0, there is no such option. I need to submit this Basic Form later.Can you tell me: is there any other option in ExtJS 4 to do this?

Farish
5 Feb 2012, 3:08 AM
Take a look at the example here:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.Basic