[英]Is it Possible to set the Target of a form to an Iframe which has Src of a different domain
Is it possible to postback to a Iframe which is a different domain? 是否可以回传到其他域的Iframe?
For eg: ` Form runat="server" action="Something in Domain A" 例如:`Form runat =“ server” action =“域A中的内容”
Iframee src="DomainA.com" name="A"
Form runat="Server" **action="DomainB/default.aspx" Target="A"**
Form
Iframee
Form ` 表格`
I will do a postback in the Iframe, so that the whole page doesnt get refreshed, but when I do a postback, can I set the Target of the Form to Iframe which has a source url from DomainA? 我将在iframe中进行回发,以使整个页面不会刷新,但是当我进行回发时,可以将表单的目标设置为具有DomainA的源URL的iframe吗?
Please advice. 请指教。
-Ben -本
Yes, you can set the form action to be an off-domain site. 是的,您可以将表单操作设置为域外站点。 That restriction is really around for AJAX request. 对于AJAX请求,确实存在该限制。
Or am I misunderstanding? 还是我误会了?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.