FAQ Database Discussion Community


How to get the name of a button that I want to drag on a panel

c#,winforms,visual-studio,drag-and-drop
I am new to C# & WinForm, I searched the internet but count not find the the solution I was looking for. It will be very good if someone please help me. Here is my problem- I have created a Form like the above image. There are 3 panels-...

Drog and Drop TableLayoutPanel in a panel?

c#,.net,winforms,c#-4.0,drag-and-drop
I'm trying a drag and drop for a tablelayoutpanel in a panel using winforms/c#, the drag of the tablelayout works successfully but the problem is that the tablelayoutpanel droped doesn't appear !! any solution please ?? private void Registration_Load(object sender, EventArgs e) { panel2.AllowDrop = true; tableLayoutPanel1.AllowDrop = true; panel2.DragEnter...

Dont know how to use a drag and drop jQuery plugin

javascript,jquery,jquery-plugins,drag-and-drop
I just find out this plugin http://www.konsolestudio.com/dad/, but i have no idea how to use it. I tried to follow the instructions, but they are not clear for me, and i cant't figure out how the plugin works. Can anyone give a hand? Thanks a lot.

Mini-Filter intercept drag & drop file(s) to disk?

c++,drag-and-drop,driver,minifilter,kernel-mode
I am developing a mini-filter to intercept files and get the name of files which are dragged & dropped to a specific disk and get the file names. If I drag & drop a file, I can get this file name and intercept it successfully (That's mean this file is...

Stop listbox from adding duplicates to other listbox

c#,drag-and-drop,listbox
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DragDrop { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (listBox1.SelectedItem == ) listBox2.Items.Add(listBox1.SelectedItem); listBox1.Items.RemoveAt(listBox1.SelectedIndex); } private void Form1_Load(object...

CSS - Flip image

javascript,jquery,html,dom,drag-and-drop
I am trying to flip images wich are dragged by using jquery when I drag the image to the new div, it makes a class. I use ui.helper.addClass("gemaakt"); and it's working fine! The thing is, my CSS script is flipping images etc.. but not classes for some reason? Since I...

Extjs: drag n drop tree node and its children to a grid

extjs,drag-and-drop,extjs4.2,treepanel
How can I drag and drop a node(parent) and all its children without selecting them, when the parent node is selected and dragged in the tree? Sample code which I have tried...

Drag & drop database images

php,jquery,image,drag-and-drop,value
I have a drag & drop system in my website and in need for help. The website is about schemes and managing them. You know, inserting scheme using a drag & drop system and showing them from the database afterwards. Everything works fine actually, but for the website they...

Chrome F8/hotkey debugger breaking during a drag and drop operation

google-chrome,debugging,drag-and-drop,google-chrome-devtools
In Chrome's web-developer tools one can break at any point by pressing F8. Often times I would like to break and inspect an element during a drag and drop operation by pressing F8. This won't work however. Is there a native Chrome-way shortcut without running a custom script?...

Java DnD : How do I get the drop target component after export is completed?

java,swing,drag-and-drop
In canImport function, the first parameter defines the target component. However, in exportDone function, the first parameter defines the source component of the Transferable data. Is it possible to get the drop target component after the data has been transferred via the TransferHandler class without using the mouseRelease listener? If...

Why getDeepestComponentAt() return null?

java,swing,drag-and-drop
I want drag text from jlabel to jtextfield (i have 9 jlabels and 81 jtextfields). Code look like: JPanel pole = new JPanel(); pole.add(tf[0][0]); tf[0][0].addMouseListener(this); tf[0][0].setName("0,0"); ...... ...... pole.add(jlab1); jlab1.addMouseListener(this); jlab1.setName("1"); ..... ..... @Override public void mouseReleased(MouseEvent me) { //get drag component (that's ok) Component c = me.getComponent(); //get drop...

Entire page as a dropzone for drag and drop

javascript,css,drag-and-drop
While writing web apps that took file input, I wanted to use drag 'n' drop, but I didn't want just a small dropzone on the page. I thought it would be more convenient if you could drop anywhere on the page. Luckily, the window.ondrop event fires anywhere on the page,...

Cannot get interact.js drag & drop interactions to work with Boostrap elements

javascript,jquery,twitter-bootstrap,drag-and-drop,interact-js
I'm attempting to get interact.js to work with Bootstrap list items. I have a very simple setup, but unfortunately I can't get it to work. HTML (div containing two Bootstrap panels - one with some draggable list items, and another with two dropzones): <div id="visualizer-panel"> <div class="leftStuff panel"> <div class="panel-heading">...

Catching HTML5 drag&drop events inside smartgwt modal Window

html5,gwt,drag-and-drop,smartgwt
I'm trying to make modal window with form to upload new files in smartgwt, currently i'm using FileItem and dropping file on its browse button works in some browsers. Problem is that i can't style FileItem and i would like it to look like a bigger "drop zone". As far...

Drag and drop an image into a RichTextBox

vb.net,image,visual-studio-2010,drag-and-drop,windows-explorer
I am updating code done in VB 4, where I have a RichTextBox. I need to be able to drag-and-drop an image from Windows Explorer into the RTB. Unfortunately, I am unable to get the drag-and-drop to work. I've created a much more simple Windows Form program to try to...

On Mac, Drag file to my NSTableVIew?

osx,swift,drag-and-drop,nstableview
I would like be able to drag (any) file to my view-based NSTableView, so in the delegate I have this setup: class MyViewController: NSViewController, NSTableViewDelegate, NSTableViewDataSource, NSDraggingDestination { @IBOutlet var tableView: NSTableView! // connected in storyboard. override func viewDidLoad() { super.viewDidLoad() tableView.registerForDraggedTypes([NSFilenamesPboardType]) // … } func draggingEntered(sender: NSDraggingInfo) -> NSDragOperation...

When I Drag and Drop one image over another, why does it disappear?

javascript,html,html5,drag-and-drop
I'm adding a drag event to multiple images, which allows them to be dragged from one block to another and back. The code is working perfectly fine, except one small glitch. Whenever I drag an image and drop it on top of any other image, it disappears. Can somebody please...

Drag and drop mail from Outlook to text

c#,email,drag-and-drop,outlook
This is a bit of a soft question, as I haven't really gotten to the point where I have started coding my project yet. What I'm looking for here are guidelines and recommendations as how best to build my desired software. I've always been fascinated with drag and drop technology,...

Javascript not identifying click event

javascript,jquery,html,html5,drag-and-drop
Currently I have a page where there are 3 panels I can drag and drop. On these panels I have 3 glyphs one for zooming, one for deleting and one for edit. Take for example the deletion glyph, when I click this it should remove the whole section within the...

LibGDX DragAndDrop - Drag stop is called immidiatly after drag

android-studio,drag-and-drop,libgdx
Im currently developing a basic game for Android, but I'm having a big problem with the com.badlogic.gdx.scenes.scene2d.utils library. When I started the project I used Eclipse and the DragAndDrop-functionality worked great, but after a while I experienced problems with Gradle which led me to change to Android Studio. So after...

Drag and drop in jquery file upload

javascript,jquery,drag-and-drop,jquery-file-upload
I use jQuery File Upload to send file on my server. I have problem, on my page I would like use two independents drag and drop areas. So when I created two input, and I click Add files everything is OK. File is added to specific input. But when I...

python pygame - how to create a drag and drop with multiple images?

python,image,drag-and-drop,pygame
So I've been trying to create a jigsaw puzzle using pygame in python.The only problem is that I'm having trouble creating the board with multiple images that i can drag along the screen (no need to connect the images like a puzzle what so ever just a simple drag and...

CSS for Drag & Drop UX

css,angularjs,debugging,drag-and-drop
I should preface this by saying my CSS skills are rather lacking. problem I am utilizing an angular drag & drop directive - angular-drop-and-drop-lists. When I switch it over to be a horizontal list where I'm trying to drag boxes, the dndPlaceholder element (i.e. the grey box) doesn't style like...

Setup ListView as a drop target for files on Windows 10 Universal Apps

c#,drag-and-drop,windows-universal
I have declared in my XAML the following element: <ListView Name='mPlaylist' AllowDrop='True' DragEnter='HandlePlaylist_DragEnter' Drop='HandlePlaylist_Drop' /> When I drag a file from Windows Explorer or the desktop onto my ListView using the mouse, the DragEnter handler is executed and I can set the AcceptedOperation member of the DragEventArgs to Link (and...

Drag n Drop inside QgraphicsView doesn't work (PyQt)

python,qt,drag-and-drop,pyqt
I created a custom class for some buttons. Those are a "draggable" buttons, which its name indicates, are buttons that you can drag and drop into each other (depending if is allowDrag property is set) and then make an action. The code of those dragbuttons is already posted here: Drag...

Move list items in multiple lists with jQuery and save to MySQL

javascript,jquery,drag-and-drop,sortable
I try to change this code to work on multiple lists too and it is also important to drag and drop the items between the lists not only in the same list: link Here is the code what I made: <?php require("db.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...

Android drag and drop issue with sending DragEvents

android,drag-and-drop,alpha
I integrated Drag And Drop Framework in my project. In the layout I have my own custom grid of cells that I want to be able to drag for swipe the order of them or to put 2 together in folder. To achieve this what I did is to build...

Drag and Drop in Aurelia not working

drag-and-drop,ecmascript-6,aurelia
I am trying to create a drag and drop control for Aurelia. Initially, it works just fine. <div class="card" draggable="true" repeat.for="card of player2.hand"> However, when I delegate a listener to the dragstart event, the drag no longer works. <div class="card" draggable="true" dragstart.delegate="$parent.dragstart()" repeat.for="card of player2.hand"> I can get the dragstart...

JavaScript - Child attribute value is automatically changing when changing parent attribute value

javascript,jquery,html,drag-and-drop,attributes
I am new for drag and drop functionality. Here is may app link in codepen http://codepen.io/anon/pen/myzVxq This is how it works, data-appt in drop class is used to specify number of .drag placed in it. Only two .drag can be placed in a .drop class. data-appt in drag class is...

listview drag listener apply to all views in layout

android,listview,drag-and-drop
I have an app that uses the this library as a drag and drop activity to reorder items. I adjusted the item layout to have two images and text (instead of one image and the text), and I moved the image that they click to drag to the far right....

d3 - drag behaviour triggered when clicking

javascript,svg,d3.js,drag-and-drop
In my svg container, I have a <g> with a rectangle and text. When dragging this group, I want to make the group disappear and just drag a small rectangle across the screen to represent the object. In order to do that, I use a <div> which I make visible...

Powershell - Drag and Drop does not work when running as administrator

powershell,drag-and-drop
The following code does not work when I am running it as administrator. The files I drop to the GUI were not displayed on it. If I am run the script NOT as the administrator it works. :/ Can somebody tell me why? Thank you for your help in advance!...

Bring a UI Element to foreground

user-interface,unity3d,drag-and-drop,foreground,topmost
I would like to implement simple drag and drop with: public void OnDrag (PointerEventData eventData) { transform.position = eventData.position; } The problem is that when i begin the drag, I want to bring the UI Element to the foreground. by doing something like this: public void OnBeginDrag (PointerEventData eventData) {...

Drag and Drop (Text)View on ListView item

java,android,android-listview,drag-and-drop
The problem: I have a TextView which I can drag. I have a ListView next to it. I want to drag the TextView onto the ListView row. Than color the row if the textview matches the row. How can I get the ListView item after a drop event?...

JLabel can't keep up with mouse

java,drag-and-drop,mouseevent
I have a small program, that creates a something, that could be considered a joystick. Everything works, but there is a glitch, I can't work out how to fix. If mouse moves too fast, the JLabel that I'm dragging around, sticks, as mouse has moved outside of the drawn box....

Angular Js Drag and Drop - Passing $index to Directive

javascript,angularjs,drag-and-drop
I have been successful in implementing the Drag and Drop feature in Angular JS. The basic idea is like Match the City with the Countries. I am able to drag the city and drop in into the Country box. But, the dropped item gets reflected in all the country box....

Iterate over elements retrieved from database Ruby/Javascrit

javascript,jquery,ruby,ruby-on-rails-4,drag-and-drop
I am dealing with this issue and certainly do not know how to solve it. I probably have chosen the wrong approach but let me explain it a little bit more. Certain information is being retrieved from my SQLite database, such info is used to build a div structure in...

HTML5 Drag and Drop issue with Cloning and replacing

jquery,html5,drag-and-drop
Thanks for taking a look into my issue. I have been trying to figure this out for days at this point, reading every possible HTML5 Drag and Drop reference there is as well as reading through as much as I could here on stackflow and I just can't figure out....

jQuery if statement not catching #ID

javascript,jquery,if-statement,drag-and-drop
I'm trying to write a simple conditional statement that checks an element's ID to identify it when dropped onto another element and something is tripping me up... Here's a JSFiddle: http://jsfiddle.net/4kvev05a/ HTML: <div class="droppable" id="drop1">Drop region 1</div> <div class="droppable" id="drop2">Drop region 2</div> <div class="draggable" id="drag1">Drag 1</div> <div class="draggable" id="drag2">Drag 2</div>...

Get touch position while dragging

android,drag-and-drop,touch
I have some views which I like to drag around. The views are within a LinearLayout, which itself is within a scrollview. I want to get the position of the current finger (touch), to make a smooth scroll on my scrollview, depending of the height of the current drag. I...

Changing text dynamically with drag / drop in Flash CS6 (AS3)

actionscript-3,flash,drag-and-drop
I have some incredibly simple code that works fine in letting me drag a "slider" button horizontally. However, I also want the text that appears above the object to change depending upon what the x-coordinate is of the object I'm dragging. Here's the simple code: var rectangle:Rectangle = new Rectangle(31,944,179,0);...

JQuery drag & drop sortable connect list

jquery,jquery-ui,drag-and-drop,sortable
Starting from the example on JQueryUI demos I'm trying to disable the sort on the left list, and the items on the left must be copied and not moved, is it possible in some way? I've created a jsfiddle for it $(function() { $( "#sortable1, #sortable2" ).sortable({ connectWith: ".connectedSortable" }).disableSelection();...

Pass object in JSON, or in var (Drag and drop)

javascript,jquery,json,drag-and-drop
Just a little question, i don't know which one is the best using Drag and Drop system. Is it better to : use setData and getData to pass a javascript object ? (Using JSON conversion, of course, setData only pass String) Or using a temporary var ? (instantiated in dragStart)....

Make Drag and Drop smoothly with jQuery

javascript,jquery,drag-and-drop
I'm dealing with a problem in my drag and drop code. The code actually works, but i would like to do two things: Make the movement smoother. The effect I'm looking for is something similar to this plugin http://draggabilly.desandro.com/ (see the first example). If you compare my code below and...

drag-sort-listview Drag is not working Android

java,android,sorting,listview,drag-and-drop
I'm using drag-sort-listview to sort rows of my ListView, and I have created a demo using this library, but it is not working. When I try to drag rows it is not working. public class MainActivity extends Activity implements OnItemClickListener { public static final String[] titles = new String[] {...

C#: Drag & Drop File on .exe (icon) and get filepath

c#,drag-and-drop
I'm new to C# and I'm not getting around this trouble. Here is what I wanted to achieve. Whenever I drag and drop a file on the .exe file (on the icon itself), the application should capture the filepath of dragged file. Thanks....

Drag & drop something from outside the map onto a feature (openlayers)?

javascript,drag-and-drop,openlayers,openlayers-3
I'm developing a website with openlayers where the user should be able to drag the name of a building from a list of buildings(outside the map) onto a feature on the map. Since I have found no way to do this with openlayers I thought about doing this by using...

How to get the view while drag & drop in android?

android,drag-and-drop
I have implemented the drag & drop feature in my app.I have four textview & i drag & drop.But i want to know which textview was draged & dropped?I want know which textview is the drop target & which textview is dragged by thier name as desifned in my code....

Dropped image preview in dropper plugin jquery

javascript,jquery,upload,drag-and-drop
I've been trying to make a drag and drop image field to upload to server using ajax. I've gone through some Jquery plugins and I found Dropper plugin can help.I tried like this. HTML <div class="target"></div> <img> JS $(".target").dropper({ action: "upload.php", }).on("start.dropper", onStart); function onStart(e, files){ console.log(files); $('.dropper-dropzone').css("background-color", "yellow"); $('img').attr({src:files[0].name});...

Drag and Drop Jstree confirmation

jquery,drag-and-drop,jstree
I developped a confirmation alert that appears do you want to move this file or folder ? if i click no: it return to default folder. if yes it wil go to the new folder. So my problem is that when i drag and drop a parent folder the confirmation...

pyqt4 drag and drop files in Qlistview

python,python-2.7,drag-and-drop,pyqt4
i can not find drag and drop the files in qlistview. i find sample code. but this is qlistwidget and qpushbutton also this sample is using class i want to make drag and drop below example. Why can not use the dropped in qlistview? main.py from PyQt4 import QtCore, QtGui...

How to drag Multi items between 2 listbox in C#?

c#,drag-and-drop,listbox
I can drag one item from listbox1 and drop it to listbox2 but how can i do it when i select multi items from listbox1? private void FrmCh3_Load(object sender, EventArgs e) { listBox2.AllowDrop = true; } private void listBox1_MouseDown(object sender, MouseEventArgs e) { listBox1.DoDragDrop(listBox1.SelectedItem, DragDropEffects.Copy); } private void listBox2_DragEnter(object sender,...

JS Drag and drop with DOM

javascript,html,css,dom,drag-and-drop
With this tutorial i made simple drag and drop web app. But I cant do it with DOM. Here is my code jsfinddle . It is not working on jsfiddle but if u download it it will. The script should be placed behind the divs. When you uncoment <div class="column"...

Drag Drop Between two Grid Views on multiple forms

c#,datagridview,drag-and-drop
So i have a main form then multiple windows with data grid views in. I want to be able to swap data to and from the main window to the child windows and vice versa. I have on my main form: private Rectangle dragBoxFromMouseDown; private object valueFromMouseDown; private void dataGridView1_MouseDown(object...

pyqt5: why the mimeData().text() returns nothing?

python-3.x,drag-and-drop,pyqt5
learning PyQt5 recently, I've tried to drag a QPushButton learning this tutorial Drag & drop a button widget, and made some improvements to place the button more accurate, so I add mime = e.mimeData().text() x, y = mime.split(',') according to @Avaris for this question, but I found e.mimeData().text() returned nothing...

Drag'n'drop outlook mail to wf is working incorrectly

winforms,drag-and-drop,outlook,office-interop
I have WF application that allows to drag and drop emails from outlook and read the contents of an email. But when I drag'n'drop email, the emails that were dropped before are not cleared up and as a result I get the copies of the previous emails + current dragged...

Drag and Drop multiple rows from html table using Jquery with tags

javascript,jquery,drag-and-drop,tablerow
I have two tables in the JsFiddle and I want to swap rows <tr> in between them. I want to be able to do this with Jquery however right now, because of the <thead> tag, it is not working. I'm thinking it has something to do with items in selector,...

How to swap two image views using drag and drop in Android?

android,drag-and-drop,swap
I've been trying to implement a very simple drag and drop in Android, where the dragged item swaps positions with the item it was dropped on. I've successfully implemented the onLongClick and onDrag listeners. When I drag and drop an item it replaces the item it was dropped on, but...

Drop not working?

javascript,html5,drag-and-drop
I'm trying to get HTML5 DnD working. I can drag but not drop. Why? What am i missing out? Fiddle: https://jsfiddle.net/un4e4rqn/ HTML <div class="well" id="columns"> <section id="drop_element" ondrop="drop(event)" ondragover="allowDrop(event)"></section> </div> <div class="col-md-2 well" id="lista_objekt"> <section id="drag_element"> <ul> <li class='elements' id='888' draggable='true' ondragstart='drag(event)'>222</li> </ul> </section> </div> JS function allowDrop(ev){...

DragNDrop on item which is loading after starting dragndrop

android,drag-and-drop
I have problem with dragndrop on android. I have recicleview and when user taps on some item, another list shows above recicleview and item starts dragndrop. After that, items for second listview are loading and showing on screen, and in getview every items set OnDragListener. Problem is, in second listview...

Drag and Drop from ListView to TreeView

java,javafx,drag-and-drop,javafx-8
I just want to drag and drop an item from my ListView to a specific position in my TreeView. I know how to handle DragEvents. But how can I get the dropped position of my treeView? With "position" I mean "on which treeview-item dropped (get reference from this treeview-item)". package...

How to detect collisions between DOM-draggables and FabricJS shapes

javascript,html5,drag-and-drop,fabricjs
I would like to find object that is already present in the canvas as soon as I drag external image over canvas and it intersects with that canvas object. This is the code I am using for drag and drop: if (Modernizr.draganddrop) { // Browser supports HTML5 DnD. // Bind...

JavaScript/jQuery drag and drop element between two iframes

javascript,jquery,iframe,drag-and-drop,draggable
I have a page with 2 iframes, side by side, both from the same domain. I want to drag'n'drop an element from a specific drag-zone (e.g. a table) of one iframe to a specific dropzone (e.g. a list) on the other. I checked all related questions on stackoverflow and elsewhere,...

jsTree 3: use a drag handle to restrict initiating dragging

javascript,drag-and-drop,jstree,jquery-ui-draggable,jstree-dnd
Using jsTree 3.0.8 I want to allow nodes to be dragged and dropped within the tree, but it should only allow that action if it was initiated by a drag on a specific button or "drag handle", instead of the default behavior of allowing dragging anywhere on the row. I...

AS3 Drag and Drop

actionscript-3,flash,drag-and-drop,z-index
I want to make a pairing-ups by drag and drop. There are three items are supposed to move on corresponding other three items on the stage. However I can predict that adding children dynamically change the all indexes (z/depth/whatever). So when 'accidentally' someone hovers over a matched pair, mouse will...

Angular dragdrop css class on drag

javascript,angularjs,drag-and-drop,angular-ui
I am using Angular dragdrop in my app. I need to change the color of the borders of the drop area when drag an item hover them. There is a css class i can use for this purpose? If not, how can i do that? Thank you very much...

Convert Devexpress control to UIElement

c#,wpf,drag-and-drop,devexpress,uielement
I have a program who on drag and drop generate XAML code and I use this to create new form from this template. It work if i use standard WPF control, but if I use devexpress wpf control get a error convert to UIElement error: No matching constructor found on...

How should I drag a JLabel from one JPanel in a JFrame onto a JTextField in another JPanel in the same JFrame?

java,swing,drag-and-drop,jlayeredpane,glasspane
In short, I want to set the text of a JLabel to be that of a JTextField in a JPanel (pnlUser) and then drag the JLabel across the screen from JPanel onto another JTextField in another JPanel (pnlGrid). Here are the details. I have written a "Solitaire Scrabble" program. The...

dragging and dropping date not working right in fullcalendar

jquery,drag-and-drop,fullcalendar
I am using jquery fullcalendar for my application. I am trying validate like can not drag and drop event to past date.Here is my code, $(document).ready(function() { var dragfingDate; $('#calendar').fullCalendar({ //defaultDate: '2015-02-12', editable: true, eventLimit: true, // allow "more" link when too many events events: [ here my events ],...

Drag-n-drop with QWindow

qt,drag-and-drop
I have custom QWidget that contains custom QWindow. QWindow with OpenGL is used as a "connector" between render framework and Qt application. Mouse and keyboard events are handled with overriding QWindow methods. Pseudo-code: class MyWindow : public QWindow { public: MyWindow : QWindow() { /* GL stuff init*/ } protected:...

UICollectionView: Waterfall layout with Drag & Drop

ios,drag-and-drop,uicollectionview,uicollectionviewcell,uicollectionviewlayout
I am using CHTCollectionViewWaterfallLayout as the layout for my collectionView, since my cells do all have different sizes. But I would also like to implement drag & drop in my collectionView. The libraries I have found would not allow me to implement both at the same time. Is there any...

Sortable & Droppable issue with 'connectToSortable' changes DOM structure

jquery,jquery-mobile,drag-and-drop,draggable,sortable
I'm creating a a tool to build a form builder of sorts using jQuery UI .draggable, .sortable and .droppable features. The tool itself's does the following: Includes a list of component in which the user can include (drag) to create a form These components can be dragged into a section...

Draggable clone issue

jquery,html,drag-and-drop,onclick
I want to drag an image box to a Droppable (the table) and after that change the image source as in this example http://fiddle.jshell.net/c6vL61fb/7/ but there is a problem. If I set ui clone as true $(ui.draggable).clone(true) then after the image is dragged, I can click on the link (ui-icon-folder-open)....

Jquery : Drop in element dropped

javascript,jquery,drag-and-drop
Using jQuery, I am trying to be able to drop an element inside another dropped element. I think the way to go about this is with setTimeout but I don't know the correct syntax. This is the code I've tried: $(".drag-cadre").draggable({revert:true,helper:"clone"}) ; $(".page").droppable({ drop:function(event, ui){ alert("drag type:"+$(ui.draggable).attr("data_type")); if($(ui.draggable).attr("data_type")=="cadre") function dropInCadre()...

jquery-ui drag and drop across multiple divs with sort

jquery-ui,drag-and-drop,sortable
I'm trying to create a jquery drag and drop solution and am a little lost with how I achieve the following. Allow '.todo-task' to be dropped into any of the 4 'backlog, pending, inProgress, completed' div containers. Use a highlight helper to show where the task will be placed in...

Drag 'n Drop Destroys ID Numbering Scheme?

php,jquery,css,forms,drag-and-drop
I have a web app which include a questionnaire editor. There can be many questions; each can have many answers; and each question has two sets of radio buttons for setting various question options. I'm using the following style of IDs: id="Q-$questionNumber" id="Q-$questionNumber-A-$answerNumber" ...where '$questionNumber' and '$answerNumber' are replaced with...

Drag'n'drop dataTransfer.getData empty

javascript,angularjs,drag-and-drop
I'm trying to get drag'n'drop to work, but I seem to be completely missing how the getData/setData works. I'm using this code (http://jsfiddle.net/ASKte/218/) var el = angular.element(document.getElementById('drag')); el.attr("draggable", "true"); el.bind("dragstart", function(e) { e.dataTransfer.setData('text', 'Where have you gone?!?!') }); var target = angular.element(document.getElementById('drop')); target.bind("dragover", function(e) { if (e.preventDefault) { e.preventDefault(); //...

Can a dialog intercept drag'n'drop messages passed to its controls?

winapi,mfc,drag-and-drop
If a dialog registers some of its controls as drop-targets, will drag'n'drop messages intended for those controls pass through the dialog's message processing in a way that the dialog can register a message handler to be notified/intercept those messages? In a similar fashion to this question, I want to catch...

Suggestion: Drag and Dropping Between PictureBoxes

c#,visual-studio-2013,drag-and-drop,picturebox
I have included 2 images so you can understand my question easier, I could not link them directly in here as I am a new member, so I have put them in my Dropbox public folder, Image 1: Design View https://www.dropbox.com/s/wca5gstd8kdsie7/designView.png?dl=0 Here you can see a Group Panel on the...

How to drag/drop both file and text in same window in wxWidgets?

c++,file,text,drag-and-drop,wxwidgets
I'm working on a program that needs to open images from both local disk and internet. WxWidgets provides wxFileDropTarget and wxTextDropTarget, but each class can only support one type of data object (wxFileDataObject and wxTextDataObject). I've try to derive class from two base classes, but the compiler says ambiguous conversions...

jQuery: drag/drop images inside div's with same class?

javascript,jquery,drag-and-drop
I'm trying to use the jquery drag and drop in my web application and drag and drop images in different div's with the same Class. But when I drag and drop the images onto one of the Div's, it will copy the same image into other div's with the same...

osx Drag not working

osx,swift,drag-and-drop
i wanted to create a minimal working example of Drag operations using swift. However, this is not working well so far. None of the NSDraggingDestination functions is called, but I can't spot my error :( class DragView : NSView , NSDraggingDestination { required init?(coder: NSCoder) { println("init") super.init(coder: coder) let...

Score if drag&drop to the right category and make img disappear Drag&drop Jquery game

jquery-ui,drag-and-drop,jquery-ui-draggable
I'm very new to j Query UI. I was trying to design a drag&drop game. I looked into lots of answers in stack overflow but not getting very similar examples(or maybe I couldn't figure out). Basically, I tried to do a recycling game where you can drag and drop different...

How can I make different shapes of a canvas draggable and particular area of it droppable in the same canvas

javascript,canvas,drag-and-drop
I want to create a Canvas in which there will be two areas (Left and right), Left panel will contain some shapes which will be draggable(static as well) and on the right side I would be able to drop them, but I am facing following problem, I am not able...

Best way to drag 3D point in 3D space with mouse picking in OpenGL?

c++,opengl,3d,drag-and-drop,mouse-picking
What is the best way to drag 3D point with mouse picking. Issue is not the picking but to dragging in 3D space. There are two ways I am thinking, one is to get the View to World coordinates using gluUnProject and translate the 3D point. The problem in this...

Update position of Image after drag and drop

drag-and-drop,libgdx
I´ve implemented a drag and drop function on some of my images. And it works great besides that the new position of the images isn´t saved and they end up in the bottom left corner each time I restart the app. This is how I´ve done: public GameScreen() { stageImage...

Changing color of objects based on the color as3

actionscript-3,flash,drag-and-drop
I have made simple drag-and-drop color buttons where if user drag the specific buttons, it will detects the color based on the what user drag and apply it to the object where user drop the color into. However, I can't figure it out why the color keep changing to black...

JavaFx 8 TreeCell Drag and Drop

drag-and-drop,treeview,javafx-8,treecell
The objective is to use drag and drop on a treeView to move the nodes on itself.I have seen several examples where the events are handled in a redefined TreeCell, but only the detected event is triggered. This is my code: public class TreeCellImpl extends TreeCell<TreeItemContent> { public TreeCellImpl() {...

Drag and Drop in position dropped jquery

javascript,jquery,html,jquery-ui,drag-and-drop
I have a tree drawn in jqxtree. I have to drag the tree element and draw a small box div and append into div id processFlowId. dragAndDrop code $( ".dragItem" ).draggable({ revert: true, revertDuration: 0, cancel : 'span', refreshPositions: true //,containment: "parent" ,helper: 'clone'}); $('#jqxTree').jqxTree({ height: '200px', width: '300px', theme:...

Sortable stops working when no elements left in the table?

jquery,jquery-ui,drag-and-drop,sortable,jquery-ui-sortable
I have a working sample of a table with draggable rows. I can transfer between the rows, which is nice, but as soon as one table has no children in it, the table becomes unable to accept children. http://jsfiddle.net/yf47u/264/ HTML <table id='table-draggable1'> <thead> <tr> <th>col1</th> <th>col2</th> <th>col3</th> <th>col4</th> </tr> </thead>...

ondragstart, ondragover,onstart - $scope is not defined

javascript,angularjs,drag-and-drop
My task is to process the dropped text using angular. I keep getting this error $scope is not defined on drag and drop events. Any idea how to fix this? I already looked into angular drag and drop libraries. They don't allow drag and drop for simple text. Most of...

Draggable is not working

javascript,jquery,css,drag-and-drop,draggable
I am trying to implement a draggable (drag & drop) picture using a script that is included at the header of my html file. I have 3 separated files for this project; html, css and js. However, when I upload it to my localhost, the draggable function is not working...

Easeljs snap to grid

javascript,canvas,drag-and-drop,easeljs,createjs
I am building an app using HTML5 in which a grid is drawn. I have some shapes on it that you can move. What I'm trying to do is to snap objects to some points defined when you hover them while moving a shape. What I tried is to save...

Fabric.js Image.fromURL not working in Firefox

jquery,meteor,drag-and-drop,jquery-ui-draggable,fabricjs
I am using Fabric.js and jQuery UI for a drag and drop scene creator. When I drag and drop an image into the canvas on Chrome everything works fine. However, when I drag and drop an image on Firefox it does nothing and I get the following error in the...

Drag and drop just like Gamefox game

c#,unity3d,3d,drag-and-drop,inventory
I want to make a game where player can customize car by dragging parts over the car from inventory just like in this video(My game is 3d).I have done all other part of programming but stuck at drag and drop function. I apologize if it was asked before and also...

Change element class in angularjs directive link function

javascript,angularjs,drag-and-drop
I'm trying to set up a simple drag/drop interface using custom directives in Angularjs. I'm working from a number of samples collected from this site and others and it all seems fairly straightforward, but doesn't quite work. Specifically, I'm trying to implement a 'dragenter' handler that will change the appearance...

Bing maps draggable infobox

javascript,drag-and-drop,draggable,bing-maps-api
I have pretty simple question. Is it possible to create draggable infobox with Bing Maps Javascrtipt API? Ergo when i click on pushpin on map the infobox will be shown and will be draggable within the map div. Thanks!...

Drag and drop from one slickgrid to another on same page

javascript,jquery,drag-and-drop,slickgrid
I am new to SlickGrid, but loving how it looks and feels. I have two SlickGrids on a page, both are being fed by JSON from a back end MVC controller. This is working fine (though I have a slight formatting issue, but I'm sure I will figure that bit...

replace image with drag drop

javascript,html5,drag-and-drop
I've gotten help from several on this site developing a drag/drop educational game where students drag images into the proper order. I was able to accomplish my goals in a Winform with Visual Basic. Now I'm trying to do the same in html. Using the three functions below, I'm able...

angular-dragdrop cloning an image isn't working with helper: 'clone' & placeholder: 'keep'

javascript,angularjs,drag-and-drop,angular-dragdrop
I'm trying to clone an image and drop it in a droppable area and continue dropping that image into that droppable area creating many clones of that image. Seems like it's possible using angular-dragdrop library with helper: 'clone' & placeholder: 'keep' but I haven't been able to make this happen,...