Get the orginal href from xml

Hello,

How can I get the orginal href in the tabbar from the xml.

I have a tabbar, with tabs that are loaded be ajax, and I have external links that load new content into the tabbar with the following code:

dhxTabbar.forceLoad(dhxTabbar.getActiveTab(),$(this).attr("href"));

But when I click again on the tab, the new href is loaded and not the orginal from the xml.

Please help.

Regards,
Michiel

Hello Michiel,

the second parameter of the forceLoad is optional. If it is not set, the tab id will be used:

dhxTabbar.forceLoad(dhxTabbar.getActiveTab());

You may get the href of a tab by a tab id from _hrefs property:

var href = dhxTabbar._hrefs[tabId];