开发者

workaround for dojo dialog launching from iframe?

开发者 https://www.devze.com 2023-02-15 07:05 出处:网络
I was going around searching for a way to launch a dojo dialog to the parent window if it was launched from an iframe when I came across this ticket. Bummer.

I was going around searching for a way to launch a dojo dialog to the parent window if it was launched from an iframe when I came across this ticket. Bummer.

Now, I would like to know if there's a workaround or if anyone can suggest a workaround for this? I'm currently using Grails and I'm trying to figure out if there's a way to "redirect" the launch to the开发者_运维知识库 parent window?

Any help would be appreciated!

Thanks!


The only information that can be shared between a page and an iframe from that page (if the two are in a different domain at least) is the name of the iframe.

So you could get your iframe to set it's name, and have your main page poll the iframe and open the dialog when the names changes to some pre-defined message.

Ugly, but it's how dojo.io.windowName works and is one of the common hacks used for cross domain communication.

0

精彩评论

暂无评论...
验证码 换一张
取 消