TabView: Setting dataSrc with content from same page (marked with <div>)

View: New views
1 Messages — Rating Filter:   Alert me  

TabView: Setting dataSrc with content from same page (marked with <div>)

by miguel_oliveira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Folks,

I'm using TabView to generate tabs with dynamic content.

One of the problems i'm getting, perhaps someone has already gone
through this, is the following - In the same page i generate my tabs,
and I've hidden html, marked with a <div id="example">.

My question is if i can do something for:

    tabView.addTab( new YAHOO.widget.Tab({
        label: 'Example Tab Label',
            dataSrc: ???????????,
            cacheData: true,        
        active: true
    }));

Is it possible to set dataSrc to get content inside <div id="example"> ?

Thanks in advance,
Miguel

LightInTheBox - Buy quality products at wholesale price!