drag

jQuery Drag and Drop Checking Question

i am new to using jQuery and I just want to know how I can check whether a draggable object has been removed from the droppable object. Example, i have a dog and I dragged it to a doghouse which has a lightbulb that will light up indicating that the dog is there. When i drag the dog out of the doghouse, the lightbulb should go off again...

Prevent DataGridDragDropTarget from Showing "Drag Shadow"

Hi, is it possible to prevent the Silverlight Toolkit DataGridDragDropTarget from starting a drag-action? What I whant is to use one DataGrid only as DragSource and another one only as DropTarget. And the DropTarget-only-DataGrid should not show this "StartDragShadow" when pressing and moving the mouse over an item. Thanks! Steven ...

Javascript: Make Rows Draggable Through Input Field Handles

I have created a table with draggable rows. Unfortunately, most of the rows are covered with a large textbox input element. In order to drag the rows, you have to grab the row on the very edge just outside of the textbox. Is there a way to allow the rows to be grabbed through the textboxes without destroying the textbox functionality?...

How to drag item out from Iframe and drop onto parent

Hi, I have a folder tree view on the left page which was in a tag, left page was the iframe container which contain the file list, when I want to drag the files out from the iframe, I got a headache. no matter the containment option was set to 'parent' or 'window', I just can't drag out elements in the iframe container can any one h...

Want to make WPF popup control to be movable( draggable )

Hai am using c#, i created a wpf popup control in my wpf form, when i click the popup is opened, now i want to make that popup as movable one, how u can do this,.... ...

Algorithm for dragging objects on a fixed grid

Hello, I am working on a program for the mapping and playing of the popular tabletop game D&D :D Right now I am working on getting the basic functionality like dragging UI elements around, snapping to the grid and checking for collisions. Right now every object when released from the mouse immediately snaps to the nearest grid point. Th...

WPF drag cursor in default cursors

I'd like to use the default drag mouse cursor on mouse-over a UIElement to indicate a control is draggable. The cursor that looks like an arrow and a FocusVisual rectangle with an overlapping plus sign inside a rectangle. Basically, the cursor that is used when setting DragDropEffects.Copy during a drag operation. However I'd like to...

How to detect end of Right drag of TControl ?

edit: VCL has no problem around right dragging and the sample program below works perfect. A mouse gesture utility causes the problem. (Perhaps it hooks & intercept WM_RBUTTONUP event...) I want to detect end of right-dragging on the control. For left-dragging, I can use MouseUp event, but it doesn't occur after right dragging. On th...

Dragging with inertia in AS3 for dummies

Hi, I'm trying to create an inertia effect for dragging that's constricted to the x axis. I know this questions was asked before here but I couldn't understand the answer! I'm currently using startDrag and stopDrag. I'm assuming I should add something to the startDrag function that captures the speed in which the user is moving the mo...

jQuery drag/drop unbinds child links

Hi, I want a draggable div to include a clickable link. Everything works fine until i drag and drop the div. The link inside seems to unbind after drag/drop. Anyone? Thanks! Dirk ...

(iPhone) how to implement draggable pins using OS 4.0 MapKit?

Can anyone provide any sample code/instructions for implementing draggable pins in OS 4.0 using the MapKit framework? ...

Not able to input text in html text field

I have a script that makes me able to drag some content in a div. But because you can drag around, no matter where you place the cursor in the div, I am not able to input some text in a text field. Is it possible to allow that? I can eaily click links in the div container. But not input text in a html input field. This is the javas...

WPF listview drag without deselect

I have a listview object containing files in the program. The default listview behavior allows me to do all the select operations on the list (click+shift to select a block, click+ctrl for individually selecting members of a group of items, and click to select a single item). I want to begin dragging these items with a click and hold o...

Image rotator using mouse drag event in Javascript

Hi, I've been searching for this script all day. does anyone know any such script that I can use to rotate an image using mouse drag event. using javascript. thanks in advance. ...

How to get updated innerHTML with javascript

Hi I have this page contains 3 draggable divs. I'm using JQuery to drag these divs on the page. Now when I drag them to different positions. their attributes values should be changed to the new positions. for example when the page loads the first div value: <div style='position:absolute;left:1px;top:1px;'> after I drag the box ...

how to clean the css style of jquery-ui be added automatically when someone use ".draggable()"

this is my code : <style type="text/css"> #draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; border:1px solid #DDDDDD; color:#333333; background:#F2F2F2; } #droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; border:1px solid #E78F08; ...

Simple drag`n`drop in Flash Builder 4

I have a very simple question, but I can not find solutions to it. I need to add multiple images that can be moved with the mouse. This components NumericStapper must be in the group with the image and move together. http://img835.imageshack.us/img835/9341/323.jpg ...

jQuery, get Previous and Next element on Drag, based on parent

I am trying to create a timeline. There is a dragger element and some dynamically created timeframes (DIVs). When you drag the dragger the code will indicate what is the near left and near right div. The code works, you can see it at http://jsfiddle.net/3pXC9/15/ . Just drag the red handle, the blue dot is the left and the red is the rig...

WPF Creating Custom Events

I am working on a part of a menu to allow it to be re-organized by its user. This menu has a grid(4x3) with 12 elements, all of which are of the type NavButton, a class I created that extends Button. In the NavButton I have a drag feature that allows the buttons to be moved throughout the grid and currently I am working on determining wh...

How to move a line ? xcode

Hi all, Would appreciate any ideas. I have a line (begin x,y / end x,y). Its stored in an array. I can detect a touch that intersects my line (can delete etc; from array). What I would like to do now is to move that line to new location (based on drag), or, continue the line further (or indeed reduce its length) at either point. All base...