Categories | Question details Back To List | ||
Layout cells and style sheets When using the Layout I have several frames, when I include a URL object does the included file need to be a complete html file? I tried to include a partial file, but it does not seem to find the style sheets included in the main file. // index.jsp <html> <head> <title>Attach dhtmlxTabbar to Layout</title> .. css and js includes removed for brevity ... </head> <body> <div id="parentId" style="position: relative; top: 20px; left: 20px; width: 600px; height: 400px;"></div> <script> var dhxLayout = new dhtmlXLayoutObject(document.body, "3T"); dhxLayout.cells("a").hideHeader(); dhxLayout.cells("a").setHeight(86); dhxLayout.cells("a").attachURL("header.jsp"); dhxLayout.cells("a").fixSize(false, true); dhxLayout.cells("b").hideHeader(); dhxLayout.cells("b").setWidth(1400); dhxLayout.cells("c").hideHeader(); var rhsTopTabbar = dhxLayout.cells("c").attachTabbar(); rhsTopTabbar.setImagePath("js/dhtmlx/imgs/"); rhsTopTabbar.loadXML("rhs_top_tabs.xml?etc="+new Date().getTime()); <!-- Break down second frame into a left/right --> var dhxTabbar = dhxLayout.cells("b").attachTabbar(); dhxTabbar.setImagePath("js/dhtmlx/imgs/"); dhxTabbar.loadXML("tabbar.xml?etc="+new Date().getTime()); </script> </body> </html>
The styles included in the index.jsp file are not seen in this file // header.jsp<div id="header"> <div id="headerImage"></div> <span class="red">This is red</span> </div> Answer posted by Support on Nov 17, 2008 04:40 It seems something wrong with stylesheets. Here is a demo, all works fine: http://dhtmlx.com/docs/products/dhtmlxLayout/samples/conf/attach_url.html?un=1226925525000 |