Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Atif Ghaffar on Aug 23, 2009 09:55
open dhtmlx forum
Tabbar and reload

Hello.

We are using Tabbar with iframe method.
It works very well.

The problem is clicking on a tab does not reload the content.

For example a tab that points to list of modules labeled "Modules"
The list of modules open in the iframe.
User clicks on a module and go deep somewhere within it.

Now by clicking again on the "Modules" tab does not refresh the iframe with the list of modules.
Please let us know how this can be done.
thanks.

Answer posted by Alex (support) on Aug 24, 2009 00:44

Hello, 

tabbar doesn't reload the inside. 

In order to do that you can use onSelect event:

tabbar.attachEvent("onSelect",function(id){

tabbar.setContentHref(id,getURL(id));

return true

})

Where id is id of selected tab and getURL is some your function that returns url for a certain tab.