Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael on Nov 19, 2009 15:58
open dhtmlx forum
attaching table based content to a cell in dhtmlxLayout

I have created "2E" type layout with dhtmlxLayout. The bottom "b" pane pulls from an iframe and works fine. The top "a" frame should contain inline html, mostly wrapped in a series of nested tables. I surround the content for "a" frame with a div, but it won't render. If i put regular html content without any table(s) it renders fine, but as soon as I add a table to the html it won't render any more content after the table.

Is there a workaround for this?

Thanks,
Michael
Answer posted by Alex (support) on Nov 20, 2009 02:19
Please, provide the sample to recreate the issue
Answer posted by Michael on Nov 20, 2009 08:02
There is a lot of other html and javascript on this page - but this is the crucial piece....

<div id="parentId" style="position:relative;top:20px;left:0px;width:100%;height:700px;aborder:#B5CDE4 1px solid;"></div>
<div id="test1"><table cellpadding="0" cellspacing="0"><tr valign="top"><td><b>ouch</b></td></tr></table><hr>hello<select><option>one</option></select></div>

<script>
    var dhxLayout;
    function eY(){
        dhxLayout=new dhtmlXLayoutObject("parentId","2E");
        dhxLayout.cells("a").setText("Add item To This SKU");
        dhxLayout.cells("b").setText("Items In This SKU");
        dhxLayout.cells("b").attachURL("index_iframe.php?mode=view&category=skuitems&sku=14");
        var obj=document.getElementById("test1");
        dhxLayout.cells("a").attachObject(obj);
    }
window.onload=eY;
</script>
Answer posted by Alex (support) on Nov 20, 2009 08:14
The issue wasn't reproduced locally. Please, see attached sample
Attachments (1)
sample.zip48.81 Kb