Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Need some help with drag and drop of dojox.gfx

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Ranch Hand
Posts: 47
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic