I would like to be able to update the toolbar after the iframe url has loaded. How do I reference the toolbar in the Accordion from within the ifr.onload function?
var toolbar = dhxAccord.cells("ac_1").attachToolbar();
toolbar.setIconsPath("assets/dhtmlxSuite/dhtmlxToolbar/samples/common/imgs/");
toolbar.addButton("open", 0, "Edit", "open.gif", "open_dis.gif");
var ifr = dhxAccord.cells("ac_1).getFrame();
ifr.onload = function(){
if(this.contentWindow.contentSize() > 200){
toolbar.addButton("expand", 4, "Expand", "selection.gif", "selection.gif");
}
}
Note: contentSize() is a script in the content of the iFrame that tells me the clientHeigth of the iframe.