通过 Access IFRAME Content 实现 dhtmlxWindows 间传值:
[url]http://docs.dhtmlx.com/doku.php?id=dhtmlxlayout:access_iframe_content[/url][quote]
mine
[url]http://docs.dhtmlx.com/doku.php?id=dhtmlxlayout:access_iframe_content[/url][quote]
//Accessing IFRAME object
ifr = dhxWins.window(id).getFrame();
//Accessing functions/variables/obects
ifr.contentWindow.msg = "Popup message";
ifr.contentWindow.myFunc();
ifr.contentWindow.document.getElementById("myDiv").innerHTML = "Object on page";
[/quote]
mine
function selectChannel(channelId, channelName) {
///alert(channelId + " * " + channelName);
closeTopmostWindow();
var topWin = dhxWins.getTopmostWindow();
//alert(topWin.getId() + " * is modal:" + topWin.isModal());
//alert(topWin.getFrame().contentWindow.document.getElementById("fidsTextRefChannel.textFull").value);
topWin.getFrame().contentWindow.document.getElementById("channelName").value = channelName;
topWin.getFrame().contentWindow.document.getElementById("channelid").value = channelId;
}