This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Drag and Drop in Javascript" Watch "Drag and Drop in Javascript" New topic

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
Ranch Hand

Joined: Nov 06, 2012
Posts: 295

Links are already draggable and droppable without JavaScript.

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

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:
subject: Drag and Drop in Javascript