Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Seetharaman Srinivasan on Aug 13, 2008 07:58
open dhtmlx forum
dhtmxTabbar

My application is working fine and still I see this message in firebug

t.className.indexOf is not a function --- dhtmlxtabbar.js (line 61)

Any ideas?
Answer posted by Support on Aug 14, 2008 01:17
The error occurs insede code which detects tab by HTML node while some event action occurs ( mouseover or click )
The error can't be reconstructed in local sample, and related code has not any potential problems. 
If issue still occurs for you - please provide any kind of sample where issue can be reconstructed. 
Answer posted by Seetharaman Srinivasan on Aug 19, 2008 05:48
I have a google map inside oneof the tab. Click event is enabled for Google map to get the latitude and longitude for the clicked location. At that time, click even is sent to Tab object and I get this error message as shown above. This is my observation
Answer posted by Support on Aug 19, 2008 07:44
The tabbar itself will not react on any clicking events inside tab content ( this is expected use-case )
Latest version of dhtmlxtabbar.js sent by email., please try to use it instead of existing one. 
Answer posted by Seetharaman Srinivasan on Aug 19, 2008 08:50
Thanks for the support.
With the new file I tried and got the same error.
So I added alert after each statement and located the statement where it failed.
The error showed when an Ajax call is made to get the data.
Then I looked at the prototype.js I used. It was 1.4 version. I changed the js file to 1.6 version, The error disappeared.