drag-and-drop

How to get mouseup event after native drag event?

南笙酒味 提交于 2019-12-11 07:43:21
问题 The implementation of the WHATWG drag and drop supports dragstart , drag and dragend events. The dragend event fires when the draggable object returns to the original position, e.g. try dragging the red box as far as you can and release it. The dragend (and "END!" console.log message) will not fire until the draggable element returns to the original position (this is most visible in the Safari browser). var handle = document.querySelector('#handle'); handle.addEventListener('dragend',

Drag N Drop utilizing simple cursor

岁酱吖の 提交于 2019-12-11 07:31:56
问题 I'm using CommonsGuy's drag n drop example and I am basically trying to integrate it with the Android notepad example. Drag N Drop Out of the 2 different drag n drop examples i've seen they have all used a static string array where as i'm getting a list from a database and using simple cursor adapter. So my question is how to get the results from simple cursor adapter into a string array, but still have it return the row id when the list item is clicked so I can pass it to the new activity

JQuery: How to drag multiple rows from one table to another?

自闭症网瘾萝莉.ら 提交于 2019-12-11 07:23:08
问题 Here's the Fiddle I have a table with draggable rows that are multi-selectable, but I want to drag them en masse to another table and drop them there - not to be appended as additional elements to the other table, but to do some stuff with the information, i.e. form submission. My example is originally based on another demo I found here: multi drag demo Here is the HTML code for the basic example of this problem. <table class="DraggableThings"> <tr draggable='true'><td >Row 1</td></tr> <tr

Magento: Creating a drag and drop Chocolate box picker

﹥>﹥吖頭↗ 提交于 2019-12-11 07:17:35
问题 We're looking to do is replace this Flash based solution http://www.kennedyschocolates.co.uk/buy-online/make-your-own-selection this was built and integrated into Joomla / Virtuemart and has worked successfully for a number of years. However, we want to move the client over to Magento (for obvious reasons!) but the drag and drop picker is integral for our client as it provides a high percentage of orders. This drag and drop system allows users to build their own chocolate box. Firstly they

Drag and Drop Text to C# Console Application exe

爱⌒轻易说出口 提交于 2019-12-11 07:07:26
问题 Basically I want to start up a c# console application by selecting text from say a web page or word or something, drag the text over the c# application's .exe file, and retrieving the text in the console application. So for example I select the word "Hello" from a webpage. I then drag it over the .exe icon for the c# project. The C# project then reads the "Hello" I dragged and dropped and does some processing to it. I'm aware of how to drag and drop files in c# but the I cant copy text over

QStandardItem::clone() not being called for Drag and Drop

你离开我真会死。 提交于 2019-12-11 07:01:02
问题 I have a Qt application where I am using a QStandardItemModel derived class, and a QTreeView to interact with it. I would like to enable drag and drop to copy and move items around the model. To enable this, I have done the following: In QStandardItem subclasses that represent leaf nodes: setDragEnabled(true) and override clone() to return a real copy of the item. In Folder nodes: setDropEnabled(true) In QTreeView: setDragEnabled(true); setAcceptDrops(true); setDropIndicatorShown(true); Drag

Drag/drop from ListBoxDragDropTarget to PanelDragDropTarget

寵の児 提交于 2019-12-11 06:56:12
问题 Using the Silverlight 4 toolkit, is it possible to drag and drop from a ListBox to a Canvas (and get an event on the drop into the Canvas)? I was able to write code to drag/drop from a wrap panel inside a PanelDragDropTarget to a canvas but the event handler did not trigger when the drop occurred. When I tried to drag/drop from a ListBox inside a ListBoxDragDrop to the Canvas inside the PanelDragDropTarget, the drop did not occur (and the event handler didn't trigger). While dragging over the

Drag and Drop photo preview is not worikng

梦想的初衷 提交于 2019-12-11 06:38:54
问题 Photo preview is not working ,please help me //single photo upload with box click //keyValPImage stores the box image in array $(".dzq-img-box ") .on( 'click', this, function() { $('<input type="file" name="files[]" />') .click() .on( "change", function(event) { event .stopImmediatePropagation(); var files = !!this.files ? this.files : []; if (!files.length || !window.FileReader) { return false; // no file selected, or no FileReader support } if (/^image/ .test(files[0].type)) { // only image

Richfaces drag and drop object not defined?

谁都会走 提交于 2019-12-11 06:11:24
问题 Mozilla is spitting out DnD is not defined errors on all of my rich:dragSupport and rich:dropSupport tags. When I check out the generated javascript the DnD object is where it should be and things look ok. Any ideas on why my DnD object is not defined? Has anyone come accross gotchas with using richfaces dnd? We are using Richfaces 3.2.1 (drag and drop started in 3.0.0 acording to docs) An example of how we are using this: <a4j:outputPanel><rich:panel> <rich:dropSupport dropListener="#{myBean

Dojo DnD acceptance of outside objects

痴心易碎 提交于 2019-12-11 05:29:21
问题 Is it possible to code a Dojo DnD target to accept external objects, such as files or folders from a file explorer? Windows Explorer, for example. 回答1: I doubt it, because it will be the browser that will receive the DnD event... At best you can count on a plugin or extension to handle it, like the excellent DragDropUpload extension does for file upload fields in Firefox. 回答2: What kind of file explorer are you talking about? From what I can recall you'd be lucky to get dnd working properly