fancybox 和 worldpay
我今天正在与一个网站合作,需要我通过立即购买按钮将 worldpay 集成到其中,预算不允许进行大量的设计工作,所以我正在考虑将 world pay 步骤集成到一个漂亮的叠加层中,然后只是拥有样式漂亮的表格。
我的问题是,worldpay 提供的用于使用其表单的许多 JavaScript 都使用 open()
函数。这将关闭 fancybox 并在新选项卡中打开下一步,有办法解决这个问题吗?也许还有另一个功能?
I am working with a website today, that requires me to integrate worldpay into, via a buy now button, the budget does not allow for a huge amount of design work, so I am thinking of integrating the world pay steps into a nice overlay, and then just having nicely styled forms.
My problem is that alot of the javascript that worldpay provides to use it's forms uses the open()
function. This closes fancybox and opens the next step in new tab, is there a way around this? Maybe another function?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以“享受”编辑 worldpay 模板并更改 javascript 以通过 ajax 加载下一页,并且您的 fancybox 可以观看该模板并更改其内容。
另一种解决方案是使用 iframe 并设置其样式,使其看起来无缝。您可能仍然需要从 worldpay 主题中删除页眉和页脚才能使其正常工作。
you could "enjoy" editing the worldpay templates and change the javascript to load the next page via ajax and your fancybox could watch that and change it's content.
another solution is to use an iframe and style it so that it looks seamless. you might still have to remove headers and footers from the worldpay themes for it to work.