1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    2
    Vote Rating
    0
    eWey is on a distinguished road

      0  

    Default Getting form fields from a TabPanel inside a window (desktop)

    Getting form fields from a TabPanel inside a window (desktop)


    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):

    PHP Code:
    listeners: {
        
    beforetabchange: function(abc) {
            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!

  2. #2
    Ext User
    Join Date
    Apr 2010
    Posts
    2
    Vote Rating
    0
    eWey is on a distinguished road

      0  

    Default


    Please I'm stuck... anyone?

Tags for this Thread