ASP.NET 使用 iframe for 3ds - 如何返回到托管页面 [英] ASP.NET use iframe for 3ds - how to return to the hosting page

查看:60
本文介绍了ASP.NET 使用 iframe for 3ds - 如何返回到托管页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过向页面上的 div 添加 iframe 来实现 3ds.3ds 过程完成后 - 银行使用我提供的重定向 URL.我的问题 - 是它正在重定向 iframe 而不是我包含该 iframe 的原始页面 - 给我我的网站的结果 - 在 iframe 内.

I've implemented 3ds by adding an iframe to a div on my page. Once the 3ds process is finished - the Bank uses a redirect url that I've provided. my problem - is that it is redirecting the iframe and not my original page containing that iframe - giving me a result of my site - inside the iframe .

在 3ds 结束后关闭 iframe 并在主浏览器页面上进行重定向的技术是什么?

What is the technique to close the iframe once 3ds is over and make the redirect on the main browser page ?

我无法控制银行对 3ds 流程的实施.

I do not have control over the bank's implementation of the 3ds process.

推荐答案

首先,通过允许您提供重定向 url,银行希望您在顶层显示 3ds 页面,即作为独立页面和不是在 iframe 内.一些银行甚至完全阻止使用 iframe.而且您可能永远无法确定您正在与哪家开证行打交道.因此,如果可能,您应该避免将 3ds 页面保留在框架内.

First of all, by allowing you to provide a redirect url, the bank expects you to show the 3ds page at the top level, i.e. as a standalone page and not inside an iframe. Some banks even go as far as to prevent iframe usage entirely. And you probably never know for sure what issuing bank you're dealing with anyway. So if possible, you should avoid keeping the 3ds page within a frame.

不过,如果您知道重定向 url(因为您首先提供了它),您可以简单地监视该 iframe 上的 onLoad 事件并对其采取行动.

Still, if you know the redirect url (since you provide it in the first place) you can simply monitor the onLoad event on that iframe and act upon it.

这篇关于ASP.NET 使用 iframe for 3ds - 如何返回到托管页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆