Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by alvaro on Oct 23, 2009 05:42
open dhtmlx forum
tabbar + xml

Hi, I'm working with tabbar component, is there any function which parses the xml as string?

On the other hand, if I have a tab with div's can I access the object to add the button to close tabs?

Thank you. A greeting.
Answer posted by Alex (support) on Oct 23, 2009 07:13

Hello, 

tabbar. provides loadXMLString method. 

close button can be enabled in tabbar. http://www.dhtmlx.com/docs/products/dhtmlxTabbar/samples/06_behaviors/01_closing_button.html

If you want to access the tab content, you can use document.getElementById(...) method. 

In case of iframe based loading mode you should get window object before:

var win = tabbar.tabWindow(tabId);

win.document.getElementById(...); /*this approach works for pages from the same domain*/