Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by squatss on May 12, 2009 03:49
open dhtmlx forum
Tabbar

Hi Support,

I'm getting a javascript error when creating a tabbar using IE6.

The script breaks on the following line of 114 of the tabbar code(minimised version):

dhtmlXTabBar.prototype.setSkinColors=function(a_tab,p_tab,c_zone)
{
this._styles[this._cstyle][10]=p_tab;
this._styles[this._cstyle][11]=a_tab;
this._conZone.style.backgroundColor=c_zone||a_tab};

Specifically the last line cases the error with the message of "Invalid property"

Any help would be most appreciated as it doesnt happen FF3

Cheers


Scott
Answer posted by Alex (support) on May 12, 2009 05:58

Hello, 

the issue wasn't reproduced locally.

Please, take a look at the attached sample

Attachments (1)
tabbar.zip27.61 Kb
Answer posted by squatss on May 12, 2009 06:39
The issue occurs when I call:

tabbar.setSkinColors("#FCFBFC,#F4F3EE");

tabbar.enableForceHiding(true);

tabbar.setOffset("3");

tb.addTab("0","Search");

tb.addTab("1","Results");

Answer posted by Alex (support) on May 12, 2009 07:09

Please, replace

tabbar.setSkinColors("#FCFBFC,#F4F3EE"); /*1 parameter*/

with

tabbar.setSkinColors("#FCFBFC","#F4F3EE"); /*2 parameters*/