jQuery MiniUI
标题:
mini.open 问题
[打印本页]
作者:
tanbin
时间:
2013-3-20 13:37:19
标题:
mini.open 问题
mini.open({
url: bootPATH + "../demo/CommonLibs/SelectGridWindow.html",
title: "选择列表",
width: 650,
height: 380,
ondestroy: function (action) {
//if (action == "close") return false;
if (action == "ok") {
var iframe = this.getIFrameEl(); //此处的代码如果放在页面引用的js中找不到该对象。
var data = iframe.contentWindow.GetData();
data = mini.clone(data); //必须
if (data) {
btnEdit.setValue(data.id);
btnEdit.setText(data.name);
}
}
}
});
mini.open 单独写在共用用的js文件中,以便重用。
function open(url, title, wd, hg, loadCallBack, closeCallback) {//弹出窗体 mini.open({ url: urlParams.addTokenParam(url), allowDrag: false, title: title, width: wd, height: hg, onload: function () {//窗体加载完毕时 if (loadCallBack != null) loadCallBack(); }, ondestroy: function (action) {//窗体关闭时 if (closeCallback != null) closeCallback(action); } });}
作者:
factory
时间:
2013-3-20 15:13:18
//窗体加载完毕时 if (loadCallBack != null) loadCallBack.call(this);
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2