Categories | Question details Back To List | ||
DHTMLXGrid Undefined when used with Tabbar and Ajax When I call this page by itself it works fine. However when I call this page from the Tabbar script using ajax-html I get an dhtmlxgrid undefined error? <html> <head> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxgrid.css"> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlxgrid_skins.css"> <script src="codebase/dhtmlxcommon.js"></script> <script src="codebase/dhtmlxgrid.js"></script> <script src="codebase/ext/dhtmlxgrid_start.js"></script> <script src="codebase/dhtmlxgridcell.js"></script> </head> <body> <div id="gridbox" width="100%" height="250px" style="background-color:white;overflow:hidden"></div> <script> mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("codebase/imgs/"); mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication"); mygrid.setInitWidths("50,150,120,80,80,80,80,200") mygrid.setColAlign("right,left,left,right,center,left,center,center") mygrid.setColTypes("dyn,ed,txt,price,ch,coro,ra,ro"); mygrid.setColSorting("int,str,str,int,str,str,str,date") mygrid.getCombo(5).put(2,2); mygrid.init(); mygrid.setSkin("light") mygrid.loadXML("xml/grid.xml"); </script> </body> </html> Answer posted by Support on Feb 12, 2008 01:33 In case of loading by "ajax-html" tabbar correctly process script inside <script>...</script> , but it will not load additional js files ( <script src="... ) - to resolve problem you need to put such js includes in same page where tabbar sits. |