从父页面中查找iframe子页面中对象的方法:JS:document.getElementById('iframe').contentWindow//查找iframe加载的页面的window对象document.getElementById('iframe').contentWindow.docum...
分类:
其他好文 时间:
2014-11-21 17:52:14
阅读次数:
156
不知道大家有没有碰到类似的问题,当时的你是什么思路来处理这个问题呢?是url,session,cookie,还是…… 今天笔者就遇到了这个问题,当时的想法如:url,session,cookie都尝试过,但是总是不能达到自己理想的目的 最后,在查看网页js资料的时候,看到了用Form.控件id.C....
分类:
Web程序 时间:
2014-11-20 18:39:21
阅读次数:
201
父页面 Father.htm 源码如下: 全面兼容的Iframe 与父页面交互操作 父页面通过 iframe Name 调用子页面的函数或者获取子页面元素的内容 ...
分类:
其他好文 时间:
2014-11-19 12:35:00
阅读次数:
136
其实一句话就可以调用子页面的方法了,何必整得那么纠结是吧,感谢java大神:var dsjg1=document.getElementById("div-dsjg").contentWindow.checkEmpty();我的子页面有一个方法:子页面js:function checkEmpty(){...
分类:
其他好文 时间:
2014-11-14 22:42:00
阅读次数:
225
非模态刷新父页面:window.opener.location.reload();模态刷新父页面:window.dialogArguments.location.reload();先来看一个简单的例子:下面以三个页面分别命名为frame.html、top.html、bottom.html为例来具体说...
分类:
编程语言 时间:
2014-11-04 14:27:10
阅读次数:
201
1.Iframe不显示边框:frameborder=0
2.Iframe不显示横向滚动条:在iframe所指向的页面加入:
style>
html{overflow-x:hidden;}
style>
3.Iframe动态刷新:在父页面中:iframeId.window.location.replace(url);//会请求url
4.Iframe父页面调用子页面的方法:...
iOS开发中,navigation的返回按钮是英文“back”,想修改成中文“返回”或者自定义的文字;这么简单的事情却折腾了小半个小时。原来是被leftBarButtonItem和rightBarButtonItem的设置方法给迷惑了。
我们设置leftBarButtonItem和rightBarButtonItem的时候都是在当前页面;而backBarButtonItem却是在父页面;所以需要...
分类:
移动开发 时间:
2014-10-30 13:32:06
阅读次数:
195
同域:父页面获取子页面元素:注意:onload事件jQuery获取:$("iframe").contents().find("holder")......;(嵌套三层,或者更多时)$('iframe').contents().find('iframe').contents().find("ifram...
分类:
其他好文 时间:
2014-10-28 17:40:02
阅读次数:
174
在父页面弹出窗口中,添加回调函数,当close时调用,直接上代码: art.dialog.open(url,?{
????????lock?:?true,
????????title?:?text,
????????width?:?‘800px‘,
???????...
分类:
其他好文 时间:
2014-10-16 21:45:03
阅读次数:
191