DHTMLX

通过 Access IFRAME Content 实现 dhtmlxWindows 间传值:
http://docs.dhtmlx.com/doku.php?id=dhtmlxlayout:access_iframe_content
引用
//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";

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;
}

你可能感兴趣的:(DHTMLX)