[英]How to change a form's target to in-app browser in Ionic?
I am using the Ionic framework to build an android app. 我正在使用Ionic框架来构建android应用。
I have a form as such: 我有这样的形式:
<form action='https://secure.payu.in/_payment' method="POST" target="...">
......
</form>
Is there a way to change the form's target to an instance of a cordova in-app broswer? 有没有办法将表单的目标更改为cordova应用内浏览器实例?
I have tried "_blank" but that disconnects my app from the web-view. 我已经尝试过“ _blank”,但是这使我的应用程序与网络视图断开了连接。
The only solution I could find thus far was making use of iframes. 到目前为止,我唯一能找到的解决方案是使用iframe。
I give the name of an iframe in the target attribute in the form. 我在表单的target属性中提供iframe的名称。
<form action='https://secure.payu.in/_payment' method="POST" target="iframe">
......
</form>
<iframe name="iframe"></iframe>
However this causes concerns of security. 但是,这引起了安全隐患。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.