本文介绍了将对象拖出IFrame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的页面上有一个IFrame,指向包含< li /> 元素列表的页面。 < li /> 元素是创建的可拖放。

I have an IFrame on my page pointing to a page containing list of <li /> elements. The <li /> elements are Draggables created using Scriptaculous library.

问题是如何拖动IFrame的元素OUT,并将它们放在包含IFrame的页面上?

The question is how do I drag the elements OUT of the IFrame, and drop them on the page containing the IFrame?

是否有任何可用于支持跨框架的库拖曳落下?我不知道jQuery,但Scriptaculous绝对不支持这个。

Is there any library available which supports cross frame dragging & dropping? I don't know about jQuery, but Scriptaculous definitely doesn't support this.

推荐答案

检查这个,它是使用PrototypeJS和Scriptaculous

Check this interesting implementation, it was done using PrototypeJS and Scriptaculous

我发现这个变通方法很有趣,因为它实际上使用了两个包含LI项目的iframe,你可以在iframe之间拖放。

I find this workaround interesting since it actually uses two iframes that contain LI items, and you can drag and drop between the iframes.

这篇关于将对象拖出IFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 08:15