aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Drag and Drop in Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Drag and Drop in Javascript" Watch "Drag and Drop in Javascript" New topic
Author

Drag and Drop in Javascript

Pavan Kumar Dittakavi
Ranch Hand

Joined: Feb 12, 2011
Posts: 104

Hello All..

Is it possible to write javascript code that say enables drag and drop of links in google search results?

Thing is we need to enable drag and drop support between an SWT based client and a web-based client. So, wanted to know if this is possible.

Please suggest.

Thanks, Pavan.
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 295
    
    5

Links are already draggable and droppable without JavaScript.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
Anna Harris
Greenhorn

Joined: Aug 21, 2012
Posts: 13
Yes, javascript Support for Drag and Drop operations.It may be applied to individual elements on your HTML page. For drag operations, an element can handle the following JavaScript events:
» ondragstart
» ondragover
» ondragleave
» ondrop

For more detail Please visit: https://developer.apple.com/library/mac/#documentation/AppleApplications/Conceptual/SafariJSProgTopics/Tasks/DragAndDrop.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drag and Drop in Javascript