• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need some help with drag and drop of dojox.gfx

 
Ayan Dutta
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic