PDA

View Full Version : Submit form with a closed tab



bruudvisser
12 Aug 2010, 12:21 AM
Hi,

I have a problem with a submitting a form.
I have a form with a button on it, when I click this button, a new tab opens with additional in form information.
This is not a problem. The problem starts when i close the tab i just added. When I submit, the form wants to know the value of the fields from the tab i just closed. Firebug gives an error message and the form stucks on the wait message.
I tried lots of things but nothing works..
Got any idea?

Thanks in advance.

Ruud

j_mmontero
12 Aug 2010, 5:49 AM
Get the form values before closing the tab, then submit the form.


var form = Ext.getCmp(formId);
form.getForm().getValues() // will give you the values of the form

bruudvisser
12 Aug 2010, 6:01 AM
Get the form values before closing the tab, then submit the form.


var form = Ext.getCmp(formId);
form.getForm().getValues() // will give you the values of the form

Thanks for the quick reaction, but this is not what I mean. I don't want to post the values from tab is just closed.

j_mmontero
12 Aug 2010, 6:04 AM
So you want to post the values only for the active tab?

bruudvisser
12 Aug 2010, 6:34 AM
yes only the visible tabs, so I don't want to post the tabs I just closed.