This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Need some help with drag and drop of dojox.gfx Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Need some help with drag and drop of dojox.gfx " Watch "Need some help with drag and drop of dojox.gfx " New topic

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 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 .


B Mayes
Ranch Hand

Joined: Apr 28, 2010
Posts: 47

I realize this topic is a few months old, but have you seen this?

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
It's not a secret anymore!