drag-and-drop

Create onDragEnter custom event

Hello, I was experimenting with the onDragEnter event and realized it only works in IE. How can I recreate this event using jQuery, so that I can get information about what is being dragged, etc.? For example, I'm trying to drag some random text over a box that can recognize what the text is, etc. I also need to be able to drag some ra...

Implementing drag and drop with QT 4.5 using QT Creator environment

We're about to commit to Qt and C++ (sigh) to do some cross-platform development. The latest version of Qt 4.5 seems very nice as does the QT Creator IDE, which although simple compared to other IDEs, is a good way to get started. I'm trying to understand how to do drag and drop into QT widgets from the "outside" world. As far as I can ...

jQuery UI Drag + drop after AJAX call

I'm using a AJAX call to create a new droppable box. Now within that box I want to create another droppable container after a successful drag and drop event into that box. I don't want to create a recursive call, however. $("#box").click( function (e) { // Create container // Create addDrop droppable firs...

jQuery drag drop slower for more DIV items

Hi there, I have got a hierarchichal tags (with parent child relationship) in my page and it will account to 500 - 4500 (can even grow). When i bound the draggable and droppable for all i saw very bad performance in IE7 and IE6. The custom helper wont move smoothly and was very very slow. Based on some other post i have made the dro...

Drag-and-drop generation of XSLT for displaying XML as HTML?

(I've searched and browsed XSLT questions, as well as looked at Altova's product, though not yet Stylus's product.) I do not want to hear again that XSLT is complicated and difficult to hand-code. That's how HTML was when it was first popularized. (I know, apples and oranges comparison because XSLT is a processing language and HTML is j...

(WPF) Can I save a ItemsControl to a List?

Hello, I will explain my question a little more. I have a ObservableCollection binded to a ItemsControl with it datatemplate. Nothing new :P. The thing is that I'm using a Drag & Drop library for changing the order of the items in the ItemsControl. The library works fine, you can drag some items in the ItemsControl. The problem is th...

How can I find out why my drag action momentarily freezes in Perl/Tk?

I'm seeing some occasional (one time in five), momentary (5-10 seconds) "freezing" when it dragspossibly as part of the -startcommand callback. It never happens on the first drag. The callback is simple enough; it just sets the text of the dragging cursor to the value that is being dragged: sub DragStart { my( $token ) = @_; my $w...

Enable dropping a file onto a Ruby script

I'm creating a small ruby script to resize images and save them in a specified directory. I'd like the application to be as transparent as possible. Is it possible to allow file dropping onto my Ruby script in all platforms? For instance, the user drags a file onto the script, which then takes the file path as an argument and resizes th...

how to get the name of the application that generated the drag and drop

how do i find out which application dropped some content on my c# form? right now i'm doing some wild guesses, like if (e.Data.GetDataPresent("UniformResourceLocatorW", true)) { // URL dropped from IExplorer } but what i'm really looking for is something like if (isDroppedFrom("iexplorer")) { // URL dropped from IExplorer } any...

Using jQuery UI drag-and-drop: changing the dragged element on drop

When using jQuery UI draggables and droppables, how do you change the dragged-and-dropped element on drop? I am trying to drag one DIV to another sortable DIV. On drop, I'd like to change the classes on the dropped DIV and change its innerHTML content. After reading various StackOverflow questions, my code looks like this: $(".column")...

jQuery: How Do I simulate Drag and Drop in Code?

EDIT: Here's a link to show you my sample code: http://www.singingeels.com/jqtest/ I have a very simple page that references jquery-1.3.2.js, ui.core.js (latest version) and ui.draggable.js (also latest version). I have a div that I can drag around very easily (using the mouse of course): <div id="myDiv">hello</div> and then in Java...

Redrawing during drag and drop

I would like trigger the drag target control to redraw itself (via either invalidate or refresh) during the DragEnter and DragLeave events. The code looks something like: protected override void OnDragEnter (DragEventArgs drgargs) { //-- Set a property that affects drawing of control, then redraw this.MyProperty = true; this.Refr...

Jquery, XML and Google Map

Hi, I'm integrating a Google Map in my website that user could add some thumbnails and details of their own house. Here's a code preview of what I want to happen. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; Jquery and Google Map // ...

WPF Shell Drag Drop Sample - Unsafe Code

I have been considering using the code example shown at Shell Style Drag and Drop in .NET - Part 3 within a WPF project. The sample project works fine, it is a great article so check it out! However when moving the code to my project I receive an error when compiling "Unsafe code may only appear if compiling with /unsafe" I understa...

Implement IDropTarget

I would like to drag and drop files from windows explorer onto my application which is being built in Codegear RAD studio 2009. Then I would like to be able to access data from the object I am dragging and dropping. I believe I have to implement IDropTarget. Can someone please provide an example of how I might implement IDropTarget to ac...

Override Drag and drop for Shell Extension

Hi All, I am working on a ShellExtension code in C++. I am creating a Virtual Drive. Which represents a repository somewhere in the Network. What I want now is to enable Drag-Drop functionality to this Drive. I want to enable user to drag the file to that Virtual Drive and then I must be able to Grab that event, so that I can perform my...

Drag & Drop using jQuery-ui

Hi, I am currently working on a project where I have to create a custom calendar sort of application to display and manage appointments easily. I need to be able to drag and reschedule appointments appropriately. jQuery-ui is pretty neat and I am able to achieve almost everything except that I require that no appointments (divs) may ov...

jQuery UI - How to know if dragged element is on top of element #x?

I have multiple draggable elements and I don't want them to be dropped on top of each other. I'd want the dragged element to appear light green when dragged, but once it's over element with certain class, it would turn red. If it would be dropped it would revert to its original position. Everything else is simple, but I would need an ev...

Drag and drop virtual files using IStream

I want to enable drag and drop from our windows forms based application to Windows Explorer. The big problem: The files are stored in a database, so I need to use delayed data rendering. There is an article on codeproject.com, but the author is using a H_GLOBAL object which leads to memory problems with files bigger than aprox. 20 MB. I ...

Create a div by click and drag

Hi, I want to be able to create a div in my application by clicking and dragging. Clicking would initiate the div creation, while dragging would resize the div. I have seen similar functionality in several jquery calendar plugins, I want to be able to do it in my application too. Can anyone please guide me into the right direction? An...