| Author |
Need some help with drag and drop of dojox.gfx
|
Ayan Dutta
Ranch Hand
Joined: Oct 16, 2005
Posts: 94
|
|
Hi ,
First of all I hope I am posting my query to the correct forum .
I am trying to implement drag and drop functionality (drag is no issue here ,main emphasis is on drop ) with dojox.gfx .
I have just two shapes ...one rectangle(say target ) and one circle .
The requirement is to detect the event when the circle is dragged and finally dropped on the rectangle (if dropped elsewhere just do not need to do anything)
I have explored the 'onMoveStop' event of dojox.gfx and made a bit of progress with it
but still not being able to implement the functionality .
I am attached the code below I have written so far .
Please help if somebody has any knowledge/idea regarding this .
Regards,
Ayan
|
 |
B Mayes
Ranch Hand
Joined: Apr 28, 2010
Posts: 47
|
|
I realize this topic is a few months old, but have you seen this?
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/gfx/demos/career_test.html
It's a joke of an aptitude test but all funny stuff aside, it actually has a lot of great dojo.gfx examples in it. It actually determines when the circles are dropped onto other objects which is exactly what are you looking for. Just view the page source and see if it helps you or not. Chances are you can use their example to accomplish what you want.
|
 |
 |
|
|
subject: Need some help with drag and drop of dojox.gfx
|
|
|