Hi .
I have this code;
window.dhx_globalImgPath = "codebase/imgs/";
var dhxWins = new dhtmlXWindows();
dhxWins.enableAutoViewport(false);
dhxWins.attachViewportTo("winVP");
dhxWins.setImagePath("codebase/imgs/");
var dhxLayout;
dhxLayout = new dhtmlXLayoutObject("winVP", "3L");
dhxLayout.cells("a").setText("1");
dhxLayout.cells("b").setText("2");
dhxLayout.cells("c").setText("3");
dhxLayout.cells("c").id="galerie";
dhxLayout.items[0].setWidth(450);
dhxLayout.items[2].setHeight(200);
dhxLayout.items[2].collapse();
menu = new dhtmlXMenuObject("meniu");
menu.setIconsPath("codebase/imgs/");
menu.loadXML("xml/meniu.xml");
menu.attachEvent("onClick", menuClick);
1. I got error in mozilla = this.vp si null because i think mozilla doesn't know document.body. Any help please.
2. var _test= dhxLayout.cells("c").attachURL("get.php?id="+_id) vhere get.php returns a html page, the return values is from explorer cache. Is there any way when i access attachURL function to delete old cahes also form DOM too.
Hi,
I got error in mozilla = this.vp si null because i think mozilla doesn’t know document.body.
You need to call window and layout initialization on window onload. See the sample dhtmlxWindows/samples/02_viewports/03_render_as.html
the return values is from explorer cache
Try to add the random parameter to the url.
dhxLayout.cells(“c”).attachURL(“get.php?id=”+_id+"&rp="+(new Date()).valueOf()) ;