PDA

View Full Version : Cannot get updated HTML from a panel



philbos
19 Nov 2010, 1:50 AM
Hi,

I am setting my content panel html using

contentPanel.update(mainRecord.get('content'));

and that works fine
but then when I update a control (e.g. textbox) value
and try to get the updated html using

contentPanel.body.dom.innerHTML

I cannot get the updated html, I still get the original html with original values

Any ideas?

Thanks

Screamy
19 Nov 2010, 5:14 AM
Do this instead:


contentPanel.el.dom.innerHTML
The 'el' (getEl()) gets the active Ext.Element from the Panel.