query取得iframe中元素的几种方法在iframe子页面获取父页面元素代码如下:$('#objId', parent.document);// 搞定...在父页面 获取iframe子页面的元素代码如下:$("#objid",document.frames('iframename').docum...
分类:
Web程序 时间:
2015-05-27 18:57:29
阅读次数:
132
在asp.net页面有时一个页面会通过iframe嵌套另一个页面,下面的例子讲述的是被嵌套的iframe页面向父页传值的一种方式,用jQuery即可。iframe页面代码: Iframe页面 This is iframe page! 父页面代码: ...
分类:
Web程序 时间:
2015-05-22 23:57:02
阅读次数:
238
源代码如下:父页面:window.showModalDialog("../readfile/readFile.jsp","","dialogWidth=1000px;dialogHeight=500px;status=no;help=no;resizable:yes");子页面:readFile.j...
分类:
其他好文 时间:
2015-05-21 10:42:04
阅读次数:
145
在用户控件中,获取父页面的方法1:方法没有参数(userInfor())string userInfor = Convert.ToString(this.Page.GetType().GetMethod("userInfor").Invoke(this.Page, null)); //获取到的值是o...
分类:
Web程序 时间:
2015-05-12 18:45:04
阅读次数:
144
刷新并清除缓存:location.reload(true); 返回上一页并刷新:history.go(-1);location.reload(true);子页面刷新父页面:self.opener.location.reload();刷新包含该框架的页面:parent.location.reload....
分类:
Web程序 时间:
2015-05-11 12:49:00
阅读次数:
169
1. 获得iframe的window对象2. 获得iframe的document对象3. iframe中获得父页面的window对象4. 获得iframe在父页面中的html标签5. iframe的onload事件6. frames参考文章1. 获得iframe的window对象存在跨域访问限制。c...
分类:
Web程序 时间:
2015-05-01 17:21:38
阅读次数:
165
1.一般情况下的回退是用在eg:在商品页面购物之后进入登陆页面,希望登陆(注册)结束之后回到上一个页面的解决$this->success('成功输入!',$_SERVER['HTTP_REFERER']); //回到上一个父页面复杂的是将页面网址保存 并进行回退!2.代码回退 写在common.ac...
分类:
其他好文 时间:
2015-04-19 19:10:56
阅读次数:
144
父页面:合同名称:子页面cghtzdList.jsp l = bj.queryHt(syb, qdrq); int si=l.size(); request.setAttribute("listHt", l);%> 采购合同名称 输入合同或合同号进行模糊匹配 --请选择合同--','...
分类:
其他好文 时间:
2015-04-18 17:27:47
阅读次数:
160
如果遇到子页面跨域的问题,可通过HTML5的postMessage来实现,但前提是子页面需要主动向父页面发送信息。下面是子页面部分: Got post? Lots of stuff here which will be inside the iframe. 在父页面中获取到子页面传递过来的...
分类:
其他好文 时间:
2015-04-13 18:40:41
阅读次数:
122
对应上一篇博客代码:父页面: 1 2 3 4 10 11 12 13 14 15 16 17 18 19 20 框架法(fream包含gridview页面):框架子页面: 1 2 3 4 ...
分类:
Web程序 时间:
2015-04-13 16:24:42
阅读次数:
140