将可拖动的div放到iframe内的可排序表中,放下(停止)后,将该div替换为table-row [英] Dropping a draggable div into sortable table which is inside the iframe and on drop (stop) replace that div with table-row

查看:116
本文介绍了将可拖动的div放到iframe内的可排序表中,放下(停止)后,将该div替换为table-row的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含可拖动元素列表的页面和一个具有可排序表的iframe,其中所有TR均可排序. 我想将可拖动元素(位于iframe之外)拖到iframe的可排序表中,放下后,div应该替换为TR.

I have a page with list of draggable elements and an iframe with sortable table in which all TRs are sortable. And I want to drag the draggable elements (which are out side the iframe ) into iframe's sortable table and on drop complete the div should be replaced by TR.

现在一切似乎都很好,但是当我将可拖动对象放到可排序对象中时,用TR替换div会有很多延迟. (浏览器未冻结)

Now every thing seems ok but when I drop draggable into sortable there a lot delay in replacing the div with TR. ( Browser is not freezing )

这是什么原因?我在用正确的方法吗?

What would be reason ? Am I doing the correct way ?

感谢您的回答.

推荐答案

感谢您尝试的曲折.

经过广泛研究,我发现问题出在最新的jquery-ui插件上.如果我使用的是1.9.2版,则问题会得到解决.

After an extensive research I figured out the problem is with latest jquery-ui plugin. If I use the version 1.9.2 the problem is getting solved.

所以,如果有人遇到同样的问题.只需将版本更改为1.9.2或更多.

So, If anyone facing the same problem. Just change the version to 1.9.2 not less not more just the same.

我在jquery网站上提出了这个问题.所有这些类型的问题均参考#7925 .

I raised this issue at jquery website. All these kind of issues are referenced to #7925.

他们只是在说:

我们不支持跨窗口拖动.

We don't support cross-window dragging.

这篇关于将可拖动的div放到iframe内的可排序表中,放下(停止)后,将该div替换为table-row的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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