Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by josh on May 07, 2008 06:56
open dhtmlx forum
image path issue with jsp

<div id="a_tabbar" style="width:800;height:600"></div>
             <script>
             tabbar=new dhtmlXTabBar("a_tabbar","top");
             tabbar.setImagePath("codebase/imgs/");
             tabbar.enableAutoReSize(true);
             tabbar.enableAutoSize(true,true);
            
             tabbar.loadXML("menu.xml");
             </script>

I'm using the above to create tabbars but when i plugged this into a jsp page...the images are not loaded anymore...
i tried with an html file...everything works fine...exactly the same code.
Any suggestions?
Answer posted by Support on May 07, 2008 09:59
The problem may be caused by some JSP redirection ( this is based on your project settings and not directly related to the component )
You can try to use absolute paths to images in setImagePath command
      tabbar.setImagePath("http://some.com/codebase/imgs/");