I am attempting to use the dhtmlxTabBar but I am unable to initialize the tab bar using javascript. I have followed your example and can initialize the tab bar using html but not when I use javascript. The error I am receiving is: “dhtmlxTabBar is undefined”. Normally, I would conclude that one of the required .js files is not included in the page. However, this is not the case.
In the example below, I have two tab bars. Tabbar B (b_tabbar) is created and Tabbar A (a_tabbar)is not. Both of these tabbars make use of the included .js files, so I’m not sure what the root of the problem would be. It may have something to do with the web server because both of these tab bars initialize when I view the page by opening the html file directly in a browser rather than going through the web server. I’m running Tomcat 6.018.
Can anyone offer a suggestion?
Tab Bar A uses the following xml file…
<?xml version="1.0"?>
Tab1
Tab2
tab3