View Full Version : Getting form fields from a TabPanel inside a window (desktop)

14 Apr 2010, 5:59 AM
Hello all!

Well I've unsuccessfully tried to find a solution for my problem in previous posts, so here I am. This is the situation:

While I'm playing around with the desktop sample I have a situation where I need to retrieve the fields from a form inside a tab (in a window with a TabPanel), I've attached a listener on the "beforetabchange" event and successfully polled the tab content, but I can't identify the form. The goal of this is to send form contents when the user change the tab (another form) and so on (there are like 20 tabs with a little form each one)...

Here's the piece of code, (I'm using firebug to catch object/events, in general for testing/debugging):

listeners: {
beforetabchange: function(a, b, c) {
if (typeof c != 'undefined') {
console.log(c.body); // Returns Object
console.log(c.body.dom); // Returns string
If I use the "dom" property I just get the string of the div holding the "body" of the tab, so... I just don't know what to do, any help will be appreciated.

Thanks in advance, Edgar!

19 Apr 2010, 6:43 AM
Please I'm stuck... anyone?