具体情况是这样的:页面中有N(不确定几个)iframe嵌套,在其中一个iframe中使用dojo弹出widget窗口,然后在此widget窗口中输入值,在该widget窗体关闭时,将弹出widget的iframe中的一个控件的值改掉。即,关闭widget窗体刷新iframe并赋值。各位大哥大姐帮帮忙啦
解决方案 »
- 这种效果如何实现呢!!
- 图片显示问题
- 关于js弱类型var的请教
- 在Netscape中如何取得现焦点所在Element的Name?
- 美女,帅哥看过来:www.go2map.com中查询图像后,保存图片这个功能~~~如何实现???
- 如何得到到一个表格的列数?
- 用JS可以实现右键菜单上的“目标另存为”这个功能吗?????????
- clearTimeout怎么用
- 求助:一个表单中有多个input,数量不确定,怎么验证不为空,一次性提交后,怎么获取到值?
- bootstrap-select 下拉框不显示
- 【求助】页面中有N个iframe嵌套,怎样找到指定的iframe对象。
- 急急急!!打不开JSP页面并报错了蹦出个对话框显示一下信息
弹出页面代码示例: DlgUtil=function()
{
window.top.dojo.require("dojo.widget.Dialog");
window.top.dojo.require("dojo.widget.FloatingPane");
this.makePane=function (action,title,top,left,width,height,widgetId,widgetFrom)
{
var params = {loadingMessage:"loading.....",
title:title,href:action,displayCloseAction:true,toggleDuration:500,resizable:false,
appendInfo:widgetId, executeScripts: true,id:widgetId,from:widgetFrom};
var size = {top:top,left:left,width:width,height:height};
var div= window.top.document.createElement("div");
div.style.position="absolute";
div.innerHTML="Initial contents...";
window.top.document.body.appendChild(div);
for(var s in size)
{
div.style[s] = size[s];
}
widget = window.top.dojo.widget.createWidget("ModalFloatingPane", params, div);
widget.resizeTo(width,height);
widget.show();
return widget;
}
}
function showWidget()
{
/*var dlg0 = dojo.widget.byId("dialog0");
var btn = document.getElementById("hider0");
dlg0.setCloseControl(btn);
dlg0.show();*/
var sipServerDetailDiv =
new DlgUtil().makePane("widget.html",
'hello',
"500px","300px","400px","250px","testid","mainFrame");
sipServerDetailDiv.show();
dojo.event.connect(sipServerDetailDiv,"onHide");
}