drag-and-drop

Jquery, drag and drop and save to mysql database?

I have been searching all over the web, i could only found the inettuts-with-cookies, which teach how to use Jquery to perform drag and drop and then save in cookies. Can anyone please show me how to save to database (php and mysql)? I need it badly.. EDIT: First, I am not php beginner, but a AJAX beginner. Those tutorials are only fo...

Flex drag and drop reorder of a HorizontalList control - Finding FROM and TO indexes?

I have a Flex3 project with 2 HorizontalList controls; one of which has drag & drop enabled. Both controls will always have the same number of items, and are related... index 0 from the 1st control matches index 0 from the 2nd control, and so on. Naturally, when using drag and drop to reorder the 2nd control, I want the items in the 1st...

How to cancel drop event in YUI drag & drop utility?

We are using drag & drop utility between one source and multiple targets. We have a restriction that one of the target can only have one child element while the other ones can have multiple items. I have tried subscribing dragDropEvent of the proxy item and returning false in case the destination target has multiple child elements, wit...

Dragged div change places with destination

Hi. Maybe a bit complex to explain. I have a grid with 9 images 100 x 100 px like this (each number symbolize a picture): 1 2 3 4 5 6 7 8 9 What I want is that the user can drag and drop e.g. 9 over 1 and they change places like this: 9 2 3 4 5 6 7 8 1 Sortables from jquery UI will not work since their solution is using floats. Th...

How do I get the coordinate position after using jQuery drag and drop?

How do I get the coordinate position after using jQuery drag and drop? I want to save the coordinate to a database, so that next time I visit, the item will be in that position. For example, x: 520px, y: 300px? EDIT: I am PHP and mysql programmer :) Is there any tutorial out there? ...

Drag n drop images among three or more different divs in a page and save the positions in mysql

I want to make a preview page in php, where I can drag n drop images among different divs and save the positions of the images in mysql. ...

drag and drop with two boxes

Hi I'm making a code which I can drag and drop the text between two boxes. In my code only the listbox1 works but the listbox2 is not. Another thing is if I add several text on my listbox and select any text in my listbox I'm getting an error: InvalidArgument=Value of '-1' is not valid for 'index' Parameter name: index. can you please h...

Overriding the OnMouseDown for a DataGridView disables the check boxes even when calling the parent's method

Hi all, I am working on .NET 2008 winforms, I am trying to drag and drop objects from a DataGridView to some other control. So I had to override the OnMouseDown event handler. Since I have checkboxes there, their state is never changed. Here's my overriden method public class SeriesGrid : DataGridView { protected override void On...

Simple JavaScript drag and drop witout the help of a library

Hi, I am simply looking for a way of using drag and drop without jquery or any other library. If a dragged object is dropped on another element the later element should start an event (in FF - better would be browser independent). I know that drag and drop for JavaScript was discussed sometimes before but the previous postings didn't h...

Jquery: draggable clone

Hello. When I make a draggable clone and drop it in a droppable I cannot drag it again. How do I do that. Secondly I can only figure out how to us .append to add the clone to the droppable. But then it snap to the top most left corner after any exsisting element and not the drop position. $(document).ready(function() { $("#containe...

Implementing drag manually on a Flex List

Hello, I have a Flex Application which displays a collection of items in one of several Lists depending on how the item is classified. By dragging items between the lists, the user kicks off a server side process which attempts to reclassify the items. The server side process then returns some XML which either contains an error messag...

Swing: Creating a draggable component...?

Hello! I searched the web for examples of draggable Swing components, but I found either incomplete or non-working examples. What I need is a Swing component that can be dragged by the mouse inside an other component. While being dragged, it should already change its position, not just 'jump' to its destination. I would appreciate ex...

Drag & Drop in VB/ASP Using Controls Created During Runtime

Hello all, This is my first time posting on Stackoverflow, but I've been reading through many questions & answers for a couple months now! Now, I'm stuck and I desperately need help. Background info: Site is located at http://www.mobiuspc.com and the section in question is the "configurator" button on my top row navigation. Everything...

C# PropertyGrid drag drop

I'm trying to implement drag/drop support to a propertygrid in C# using VS2005 (.NET 2.0). The propertygrid can handle the dragenter etc. events, but there doesn't seem to be a way to get the griditem under the pointer during a drag event. The best I've been able to get so far is to use the selectedgriditem property to retrieve a custo...

Flex Drag and Drop

Hi I am trying to do a flex drag and drop. It is very similar to this first example. http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_7.html The problem is that event.currentTarget.mouseX,mouseY is showing the position where I put the mouse down rather than the position where I had finished dragging. I am just wonderi...

How can I get drag & drop working over WebEx (WPF)

I've created a very simple proof-of-concept WPF application that allows you to drag a rectangle and drop it on another area. It works great on my desktop. However, when I view it over WebEx using Application Sharing, I lose the drag & drop functionality. Any ideas why this is happening and/or how I can get around it? ...

Drag & Drop involving accordion panes (VB/ASP)

Hello all, I have an accordion control in ASP 3.5, with multiple accordion panes. For the sake of simplicity, I will only focus on one pane as the problem is pane specific. Using JQuery, I created a draggable function and applied it to my .drag cssclass. On Page_Load, I create a bunch of image objects and assign that class to them, in ad...

How do I get clientX and clientY to work inside my "drag" event handler on Firefox?

Mozilla firefox 3.x seems to have a bug when listening to "ondrag" event. The event object doesn't report the position of the object being dragged, clientX, clientY and other screen offsets are all set to zero. This is quite problematic as I wanted to make a proxy element based on the element being dragged and using of course, clientX an...

How can I disable Text Selection temporarily using JavaScript?

Hi there all, this is a bit of a specific question so I'll get right to the point. I'm working on a short and simple drag and drop routine for part of a web application, and although the dragging and dropping bit works fine, the site goes all ugly-tastic during the operation because the browser still does the default operation and works...

iphone cocoa : how to drag an image along a path

I am trying to figure out how can you drag an image while constraining its movement along a certain path. I tried several tricks including animation along a path, but couldn't get the animation to play and pause and play backwards - so that seems out of the question. Any ideas ? anyone ? ...