【发布时间】:2011-01-10 03:44:36
【问题描述】:
让我以...作为开头...
Run JQuery in the context of another frame
本质上,索引页的结构是这样的
<html>
<body>
<div class="frames-wrap">
<iframe id="this-iframe" src="location.php">
</iframe>
</div>
</body>
</html>
location.php 然后包含一个框架集(咳咳,不是我的想法...),它有两个这样设置的框架...
<frameset cols="350,*">
<frame src="search.php" id="frame_search" name="search"/>
<frame src="edit.php" id="frame_edit" name="edit" />
</frameset>
如果我想在索引页面和这些元素之间操作对象,我该怎么做?
我一直认为上下文应该类似于window.parent.frames[0].document...我还缺少什么?
【问题讨论】:
-
也引用了这个,但我太新了,不能发布多个链接stackoverflow.com/questions/997986/…
-
这个问题可能对你有帮助:stackoverflow.com/questions/251420/…(无耻的自我推销,因为这个问题最初是我提出的)
标签: javascript jquery iframe frameset