在Docusign中打破Iframe [英] Breaking out of Iframe in Docusign

查看:135
本文介绍了在Docusign中打破Iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Iframe来渲染嵌入式Docusign文档。我成功地在iframe中签署了文档,并在签名后重定向到我指定的URL。

I am using Iframes to render the embedded Docusign document. I was successfully able to sign the document in the Iframe and get redirected to my specified URL after signing.

但重定向URL显示在IFrame中。我需要突破iframe并在父页面中显示。

But the Redirect URL is displayed inside the IFrame. I need to breakout of iframe and display in parent page.

我尝试过以下代码片段,但无济于事。

I have tried the following code snippet but to no avail.

1)iframe标签中的target =_ parent

1) th:target="_parent" in the iframe tag

2)
if(top!== self)top.location。 href = self.location.href;

2) if (top !== self) top.location.href = self.location.href;

推荐答案

我能够找到解决方案。我只需要在Iframe中捕捉Docusign重定向并隐藏它。

I was able to find solution for that. I just needed to catch the Docusign redirect in the Iframe and hide it.

 <iframe id ="docusignFrame" name="docusignFrame" th:src="${docusignURL}" width="100%" height="900" onLoad="(this.contentWindow.location != '' ? DocusignCompleted(this.contentWindow.location) : void(0));">
</iframe>
<script>
function DocusignCompleted(url) {
                $("#docusignFrame").hide();}
</script>

这篇关于在Docusign中打破Iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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