drag-and-drop

Detect which image with imagemap was clicked

When you have multiple images that share the same imagemap, is there any way to detect which image was clicked on when a user clicks on the image? I have created a little javascript app, where buildings (simple images) are placed on a map and can be dragged around. When a user clicks on a building, the building can be easily retrieved ...

Silverlight 4 Drag and Drop Alternatives

I want to add the ability to drag a user control from one part of a Silverlight 4 page onto another user control on the same page (not talking about the new Silverlight 4 ability to drag a file from the OS onto the page). What approach is most straightforward? What approach offers the most flexibility? Here are some alternatives I fou...

Snap to Grid UI in Cappuccino

Does anyone know how to do snap-to-grid in Cappuccino? Basically, I have draggable objects which I can drag into a target area. The target view needs to be set up with snap-to-grid feature. I've seen it with Mockingbird, so it's definitely possible. Any info is appreciated. Thanks! ...

jQuery: Prevent drop propragation over a draggable dialog

I have a page with some droppable <td> elements and a dialog over the page with some draggable elements. When I drag an element over the dialog that is over a droppable <td>, then elements drops inside it even if it is still being dragged over the dialog. Is there any way to prevent drop while the draggable is still over the dialog? For ...

how to drag a text string and its hyperlink from an HTML page to a TEdit

I hope to to drag a text string and its hyperlink from an HTML page to a TEdit. For example displays aaa actual string is <a href=somewhere.html>aaa</a> I try to use drag&drop vcl, but found that it only can catch aaa itself rather than the string and its hyperlink. Welcome any comment Thanks interdev ...

[Adobe Air] Can I catch a mouseUp event of an mx:Window that did not fire hte mouseDown?

Hi, In an AIR application, I have one mx:TileList with several images. What I need to do is let the user drag and drop one of the images on the desktop, giving a feeling of a desktop widget. Firstly I tried to implement this using dragStart etc, but in the end I think it is easier to handle mouseDown and mouseUp on the TileList. In gen...

question about jQuery droppable/draggable - part II

Since I will be storing the employees who are out on vacation and back at work in a database table, I need to call deleteImage($item,$unid) function on page load. Not sure how to. This is the function that is called when the suitcase icon is clicked (suitcase=out on vacation) $('ul.gallery > li').click(function(ev) { var $item = $(thi...

Drag and Drop file upload in Silverlight 4?

I'm working on re-writing a WinForms application into Silverlight. One use case in the WinForms app allows users to drag TIFF images (of faxes) from Outlook directly onto an "attach an image or fax to this case" control in the WinForms app. Is there a Silverlight 4 control which allows for the same functionality? It's important to realiz...

jquery custom drag and drop

I am trying to create functionality similar to drag and drop. I need to create my own as there will be some significant differences to the drag and drop in the jquery UI. I would like to have mousemove being called repeatedly at all times, and mousedown called every time the mouse is pressed. So I have the following code: $(document).b...

HTML5 Canvas + select / drag-and-drop features in a JS lib?

Hi, I'd like to use HTML5 Canvas, but I'd like to use it in terms of shapes, texts and curves, able to attach traditional DOM events like onClick or drag-and-drop functions. Is there any Javascript library that is able to do that for me? I've seen that gwt-canvas is close to this approach, but haven't looked it in details. Thanks, I...

Testing drag-and-drop with Watir

I'm evaluating Watir right now. While Selenium has a dragAndDropToObject command (which seems to be broken) Watir seems not to have such a command. I couldn't find a script/tutorial with an example of how to test DnD with Watir. Did anybody try/succeed in testing drag-and-drop with Watir? Btw.: I am using jQuery for the DnD implementat...

Memory Leak with Swing Drag and Drop

I have a JFrame that accepts top-level drops of files. However after a drop has occurred, references to the frame are held indefinitely inside some Swing internal classes. I believe that disposing of the frame should release all of its resources, so what am I doing wrong? Example import java.awt.datatransfer.DataFlavor; import java.io...

JQuery drag, drop and save via cookie - how to?

Sorry to be back folks, but you guys & girls seem to know much more about this than I do ... anyhow, here is my question/problem I want to use drag, drop, sort (the interface plugin does me even though I have read it's out of date? but have looked at UI and to be honest is not clear and to me appears heavier than interface?) Anyhow, ho...

How to trigger a postback using JQuery Droppable plugin ?

Hi, This is my script for the draggable and droppable <script type="text/javascript"> $(function() { $(".Source li").draggable({ appendTo: "body", helper: "clone", revert: "invalid" }); $(".Destination ").droppable({ activeClass: "ui-state-default", ...

Dragging Controls on Form at runtime

Hi All I've just started using WPF. But I'm trying to add my code that (from Winforms) enables the user to drag any control whereever they wish at runtime. But I can't seem to get the current Location of the mouse... Eh? There is no Location for Mouse? :( ...

Jquery draggable persistence either through mysql or saving cookie in the database?

I want to know that how can I persist the divs dropped on a draggable. I have been trying since long but stuck at this point. Actually you can see the demo here. I have to save the user designed wedding floor. So whenever user logins next time he/ she is able to see the last design saved. The code is shown below: ...

Drag and Drop from Silverlight to WPF

Hey guys, I'm wondering if anyone has been able to Drag some item (let's say an image with an id) in silverlight and drop it in a listbox in WPF. If you have please help ;) Thanks, S ...

is it possible to mix DHTML and Applet for Drag and drop?

I am working on some example to find if a Div (DHTML) on to Java Applet in a web page. I used YUI JS Drag drop library to make the div as droppable item and made the div surrounding the Applet as Drop Target. When I dropped it in the Div containing Applet, I am Calling some method in the applet from Javascript Drop handler? This is fine...

Flex customised drag drop

When I drag and drop between datagrids preventing default behaviour, the cursor's does not come out of the grid. The grid's scroll bars keep moving as i move the mouse.. Even if i click outside the grid the cursor still has control over the grid and keeps scrolling as i move the mouse over the screen up and down.. Please help ...

how to reference drageventArgs in xaml as command parameter with silverlight

Hi, on my silverlight 4 app I am trying to link up the drop event on a list box to my viewmodel. I am using expression blend 4's event trigger and invokecommandaction to hook up the drop event. Setting break points on my viewmodel, I can see the relevant function is fired when I drag a file onto the list box, however I cant seem to ge...