Required library edition:
Required library file: dhtmlxlayout.js
detaches object from cell (object moved to document.body, also style “display:none;” automatically added).
Create object
<div id="myObj"> </div>
Init Layout, attach object to cell “a”
var dhxLayout = new dhtmlXLayoutObject(document.body, "3L"); dhxLayout.cells("a").attachObject("myObj");
Detach object
dhxLayout.cells("a").detachObject(); // object attached to document.body now // attach to another cell dhxLayout.cells("b").attachObject("myObj");