Hi,
I have made a webpage with 3 divs and have put images / text on these pages which can be dragged. I want to limit the area in which the user can drag the text. The user will be allowed to drag the text from the left div to the center div but not the right div. Can some one please help me understand how this can be done?

Thanks,
Himi

r u using ajaxcontroltoolkit extenders.

Hi,
I have made a webpage with 3 divs and have put images / text on these pages which can be dragged. I want to limit the area in which the user can drag the text. The user will be allowed to drag the text from the left div to the center div but not the right div. Can some one please help me understand how this can be done?

Thanks,
Himi

Get the dimensions of each element. http://www.csscripting.com/css-multi-column/dom-width-height.php
Get the positions of each element. http://www.quirksmode.org/js/findpos.html
When they overlap, limit the drag.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.