If you’ve updated layout (windows, accordion or tabbar) to 2.6 version, there may be a problem with _frame property that could be used with the 2.5 version.
The attached file is the modified dhtmlxcontainer.js from v.2.6. Here we’ve added getFrame() method that should be used instead of _frame property:
Can you please post sample code for the above ie for calling function inside a attached html.
I tired but could not succeed. I have v2.5 also downloaded attached file dhtmlxcontainer and tried.
I have a layout with two division (copied it from demo). A tree is attached on the left. I want to call a function on click of a node on the tree to execute a javascript in page2.htm that is attached to layout on right.
This is the senario:
page1.htm
function doOnLoad(){
myLayout = new dhtmlXLayoutObject(document.body, “2U”, “dhx_blue”);
myTree = myLayout.cells(“a”).attachTree(“0”);
…
myTree.setOnClickHandler(onNodeSelect);
}
function onNodeSelect(nodeId){
…
var lv_url="./path/page2.htm";
myLayout.cells(“b”).attachURL(lv_url);
var ifr;
ifr = dhxLayout.cells(id).getFrame();
ifr.contentWindow.justcall();
}
page2.htm
function justcall(){
alert(“successes!”); // does not work
}
probably your page2 not loaded when you call “justcall”
try to do the same from “onContentLoaded” event or check using timeout.
also your id seems not specified here: ifr = dhxLayout.cells(id).getFrame();
dhxLayout.attachEvent(“onContentLoaded”, function(id){
var ifr;
ifr = dhxLayout.cells(id).getFrame();
ifr.contentWindow.justcall();
});
then do attachURL.
Hello In Jacob the guy who apply for the demo suite.
In the process of demo , there are some problems. those are the things !
If you have any solutions, please give us some.
The symtons are as follows(plz see the attached images that may describe the problems).
For IE (except for IE6), everything works well,
but for FF and Crome, The upper screenshot is works well but
when I close the first browser, and then in case I re-open that
the alert says like the latter one on the attached image. after the alert, the brower shows nothing(just shows the white screen))