在客户端动态创建DragPanel扩展程序 [英] Dynamic create DragPanel extender on client side

查看:40
本文介绍了在客户端动态创建DragPanel扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个div。一个包含四个图像,当点击一个时,JS函数创建一个与之对应的图像并将其附加到第二个div。

我试图让每个新图像都是可移动的。

我正在尝试三天进行多次搜索以创建DragPanel并将其TargetControlID设置为客户端的certian图像。我还尝试将一个只有DragPanel的TragetControlID属性设置为焦点上的每个图像。


任何人都知道如何做到这两种方式之一,我在寻找!

感谢任何帮助!

解决方案

这个DragPanel看起来像是一些ASP.NET控件。如果您需要纯粹的客户端解决方案,请尝试

非常感谢您的回复,

我试过这个,它帮助了我但是我在创建新图像并将其附加到DragHandler时遇到了问题

展开 | 选择 | Wrap | 行号


将第5行更改为:

展开 < span class =codeDivider> | 选择 | Wrap | Line编号

Hi,
I''ve two div.s. One contains four images, when click on one, a JS function create an image corresponding to it and append it to the second div.
I''m attempting to make each new image is to be movable.
I''m trying for three days with many searches to create a DragPanel and set its TargetControlID to the certian images on the client side. I also tried to set the one only DragPanel''s TragetControlID property to each image on focus.

Anyone knows how to do one of the two ways, I''m looking for!
appreciating any help!

解决方案

This DragPanel seems like some ASP.NET control. If you want a pure client-side solution, try something like this or this.


Thanks a lot for your reply,
I tried this, it helped me but I''ve a problem creating a new image and attach it to the DragHandler

Expand|Select|Wrap|Line Numbers


Change line 5 to:

Expand|Select|Wrap|Line Numbers


这篇关于在客户端动态创建DragPanel扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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