请教frame的刷新问题

xiangpeng0320 2012-03-25 04:49:14
<frameset name="frame">
<frame src="htmlView/head.html" name="topFrame" >
<frameset rows="*" id="midFrame" name="midFrame" >
<frame name="leftFrame" src="htmlView/left.html"/>
<frame src="jbxx.action" name="mainFrame" >
</frameset>

</frameset>
这个frame的布局 我现在要在leftFrame中写JS刷新mainFrame ,让mainFrame 跳到另一个action中。。我试了各种写法
都只能跳到一个html页面中 不能跳action。请问有人知道怎么调另一个action吗?
...全文
107 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
不熟不聊 2012-03-26
  • 打赏
  • 举报
回复
parent.frames[2].document.***Form.submit();

是用的struts吗?

直接用js控制这个页面提交就可以了啊
菖蒲老先生 2012-03-26
  • 打赏
  • 举报
回复
parent.frames[2].src = 'XXXX.action'
cxw3152 2012-03-26
  • 打赏
  • 举报
回复
mainFrame.window.location="action"
叶落 2012-03-26
  • 打赏
  • 举报
回复
parent.frames[2].......
dryZeng 2012-03-26
  • 打赏
  • 举报
回复
[Quote=引用 13 楼 xiangpeng0320 的回复:]

引用 10 楼 dryzeng 的回复:
parent.parent.location.href="xx.action";

我用的springMVC 这样写报找不到action..
[/Quote]

你在浏览器地址栏怎样访问那个action就写那样的url啊。
xiangpeng0320 2012-03-26
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 dryzeng 的回复:]
parent.parent.location.href="xx.action";
[/Quote]
我用的springMVC 这样写报找不到action..
xiangpeng0320 2012-03-26
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 cxw3152 的回复:]
mainFrame.window.location="action"
[/Quote]
因为用的springMVC 这样写直接找不到这个action
xiangpeng0320 2012-03-26
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 iisgirl 的回复:]
可不可以<frame src="jbxx.html" name="mainFrame" >
jbxx.html这种写跳转?
[/Quote]
我想跳action。。
dryZeng 2012-03-26
  • 打赏
  • 举报
回复
parent.parent.location.href="xx.action";
xiangpeng0320 2012-03-26
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 supersky07 的回复:]
parent.frames[2].document.***Form.submit();

是用的struts吗?

直接用js控制这个页面提交就可以了啊
[/Quote]
如果我想让最外层的那个最大的frame跳一个action 该怎么做啊、。
xiangpeng0320 2012-03-26
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 cxw3152 的回复:]
mainFrame.window.location="action"
[/Quote]
这样不行。
xiangpeng0320 2012-03-26
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 supersky07 的回复:]
parent.frames[2].document.***Form.submit();

是用的struts吗?

直接用js控制这个页面提交就可以了啊
[/Quote]
用的是springMVC。那如果我想让最外层的frame跳一个action怎么做呢?
昨日凡阳 2012-03-25
  • 打赏
  • 举报
回复
可不可以<frame src="jbxx.html" name="mainFrame" >
jbxx.html这种写跳转?
xiangpeng0320 2012-03-25
  • 打赏
  • 举报
回复
自己顶一下。。请教一下啊。。求高手

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧