Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Khurram on Jun 01, 2007 18:57
open dhtmlx forum
active tabbar color not changing

Hi,
I have some issues and questions regardnig dhtmlxTabbar.
  • I am creating the tabbar dynamically through ajax on the client side. I dont know why but the active tab color doesnt change when I change the tab.
    tabbar=new dhtmlXTabBar("a_tabbar");
        tabbar.setImagePath("img/tabbar/"); 
        tabbar.setSkinColors("#FCFBFC","#F4F3EE");
  • Is it possible to attain a functionality of changing the orders of tabs dynamically by a single drag and drop of tabs like in live.com?

    Regards,
    Khurram
Answer posted on Jun 01, 2007 19:54
>>but the active tab color doesnt change when I change the tab.

Please be sure that
    - you included the tabbar's css files
    - you are using default skin ( for other skins, the color of selected tab defined by image, and can be updated only by changing related image )


changing the orders of tabs dynamically by a single drag

Unfortunately, such functionality is not supported yet
Answer posted by Khurram on Jun 04, 2007 09:33
Ok thanks the colors are working now.
Do you think that drag and drop functionality can be included in the next release??
Another question that I had liked to ask is, can we enter a new tab at a specific place instead of adding it at the end? I din't find any function where I could specify the position where the new tab should be added.
Any functions to get the last or first tab id??
Thanking in anticipation.

Answer posted on Jun 04, 2007 11:35
can we enter a new tab at a specific place instead of adding it at the end? I din't find any function where I could specify the position where the new tab should be added.
addTab command support such functionality,for example
    tabbar.addTab(id,text,size,position,row)
where position - index inside row (zero based)
row - row index (zero based)

Any functions to get the last or first tab id??
There is no such functionality
Answer posted by Khurram on Jun 04, 2007 15:26
Ok thanks for your reply. Imagine a user wants to add a tab just before the last tab on the client side. The position of the new tab should be the position of the last tab minus 1. In that case how can I get the position of the last tab on the client side??
Secondly is there a way to add some common content in all tabs?
Answer posted on Jun 04, 2007 15:38
The position of the new tab should be the position of the last tab minus 1. In that case how can I get the position of the last tab on the client side??
You can use next workaround

var position=tabbar.rows[0].tabCount-2



Secondly is there a way to add some common content in all tabs?
The content can't be shared between tabs, but in most cases it not a problem to create a copy of content.
    var z=document.getElementById("contentContainer");
    tabbar.setTabContentHTML("a1",z.innerHTML);
    tabbar.setTabContentHTML("a2",z.innerHTML);
Answer posted by sematik (Support) on Dec 08, 2014 18:50

Having solved the problem mentioned above, you may also look through the possible related problems with php ajax table and javascript ui libraries.