父子页面的相互调用
来源:互联网 发布:1.76我本沉默复古淘宝 编辑:程序博客网 时间:2024/04/28 10:50
IFRAME操作父窗口: window.parent.document
jquery方法:
在父窗口中操作 选中IFRAME中的所有输入框: $(window.frames["iframeSon"].document).find(":text");
在IFRAME中操作 选中父窗口中的所有输入框:$(window.parent.document).find(":text");
iframe框架的HTML:<iframe src="test.html" id="iframeSon" width="700″ height="300″ frameborder="0″ scrolling="auto"</iframe
1.在父窗口中操作 选中IFRAME中的所有单选钮
$(window.frames["iframe1"].document).find("input[@type='radio']").attr("checked","true");
2.在IFRAME中操作 选中父窗口中的所有单选钮
$(window.parent.document).find("input[@type='radio']").attr("checked","true");
ps: $(function(){
var dialog = top.dialog.get(window);
$("#remove-dialog").click(function(){
var pageNum = window.parent.document.getElementById("page").value;
var win=window;
win=window.parent;
win.goPage(pageNum);
dialog.close().remove();
})
});
$.ajax({
url:"/resource/inventory/batchSetItemsByMemberId.jsp",
data:params,
type:"post",
dataType:"json",
contentType:"application/x-www-form-urlencoded;charset=GBK",
success:function(message){
if(message["result"]=="success"){
$(window.frames["batch_message_pop"].document).find("#batchdeal").text("恭喜你,批量定量已完成!!");
$(window.frames["batch_message_pop"].document).find("#batchsuc").css("display","");
}else{
batpub.remove();
alert(message["message"]);
return;
}
},
error:function(){
batpub.remove();
alert("程序发生错误,请联系管理员!");
},
beforeSend:function(){
sendMessage();
}
});
- 父子页面的相互调用
- 父子页面相互调用总结
- iFrame父子页面相互调用
- iframe父子页面相互调用的js方法(二)
- iframe父子页面相互调用的js方法
- JavaScript 父子页面相互调用总结
- 父子页面间相互调用js方法
- iframe父子页面相互调用js方法
- iframe父子页面相互调用js方法
- JavaScript 父子页面相互调用总结
- iframe父子窗口的相互调用
- 记录一下第一次工作时遇到的问题有关iframe父子页面相互调用
- js控制iframe父子页面js相互调用
- js父子页面相互调用变量及方法
- 父子页面相互传值
- Flex父子窗口相互调用
- javscript 父子页面调用
- 使用iframe的父子窗口之间的对象相互调用
- msdn.itellyou.cn
- [Android]自定义圆形图片
- android app 快速接入银联支付流程(android studio版)
- python中函数参数,函数调用参数传递,可变参数,*expression,**expression
- hadoop 2.6.0 安全问题--UserGroupInformation
- 父子页面的相互调用
- kafka基本概念
- JSTL中截取一定长度的字符串长度,如果超过指定长度在未尾加“......”,否则返回原来字符串。
- R语言做文本挖掘 Part1安装依赖包
- hdu 4738 tarjian求桥
- Scala 入门——Eclipse开发环境搭建
- svn提交失败: Checksum mismatch for(转)
- linux 乱码问题解决
- Android开发——利用Cursor+CursorAdapter实现界面实时更新