This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons 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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need some help with drag and drop of dojox.gfx
 
Similar Threads
not able to get width and height of another html file inside html
DOJO Tree using 0.4
DOJO1.2.3/ IE7 /addOnLoad()
DOJO Grid and JSON
DOJO : Suppourted attributes in the script tag