延迟表单提交 - iframe访问被拒绝 [英] delay form submission - iframe access denied
本文介绍了延迟表单提交 - iframe访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表格,主要表格中我是iframe
[HTML]< form name =''form1>
< iframe name =" frame1" ID = QUOT; iframe1" SRC =" iframe1.php"滚动= QUOT;是"宽度= QUOT; 300%QUOT; FRAMEBORDER =" 0" height =" 300">< / iframe>
< input type =" button"命名= [储存" onclick =" save();">
< / form>
[/ HTML]
展开 | 选择 | Wrap | 行号
解决方案
使用 setInterval 方法。
请记住使用代码标记。你现在应该知道在发布代码时你应该使用代码标签。
这是命令点击iframe上的提交按钮然后类似地是什么
命令用于从iframe提交主窗体
展开 | 选择 | Wrap | 行号
您应该能够使用父级访问主页面
i have a form and in that i iframe
in the main form
[HTML]<form name=''form1>
<iframe name="frame1" id="iframe1" src="iframe1.php" scrolling="yes" width="300%" frameborder="0" height="300"></iframe>
<input type="button" name="save" onclick="save();">
</form>
[/HTML]
Expand|Select|Wrap|Line Numbers解决方案Use the setInterval method.
Remember to use code tags. You should know by now that you''re expected to use code tags when posting code.
This is the command click the submit button on the iframe then similarily what
command is used to submit the main form from iframe
Expand|Select|Wrap|Line Numbers
You should be able to access the main page using parent.
这篇关于延迟表单提交 - iframe访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆