Most voted "drag-n-drop" questions
Drag-n-drop means "Drag and Drop"; it is a common move in user interactions with websites or programs.
Learn more…52 questions
Sort by count of
-
27
votes6
answers2483
viewsWhy is Drag-and-Drop programming rarely used?
There are currently several applications Open Source, including Brazilian projects. However, what I realize is that the function of Drag-and-Drop that the IDEs provide. I notice that many projects…
-
5
votes1
answer95
viewsI cannot remove an item copied from one list to another (drag and drop)
I have the following code http://jsfiddle.net/6hLsfqtn/. My problem occurs as follows: Add a Double Steppe to the list on the right. I add a Simple Steppe to the list on the right. Add a second…
-
3
votes1
answer151
viewsHow to Drag an Image without jQuery
I would like to make the user be able to drag the image when clicking on it, but without using jquery for that, using pure Javascript. I can pick up the mouse position on the screen, but I’m not…
-
3
votes2
answers1018
viewsHow to drag elements using dragSort inside a scroll div?
I need the elements to be dragged only inside a div that has scroll. For example: HTML <ul id="list1"> <li><div>1</div></li>…
-
3
votes1
answer412
viewsDragdrop for files . txt Windows Forms
I wonder if it is possible to use Drag and Drop in Windows Forms for files outside the application, in this case, a . txt(As is possible in WPF). I only found examples using Listbox. If possible,…
-
3
votes1
answer308
viewsLink HTML elements
I’m trying to make a little project just to learn more about HTML5, CSS3 and Javascript. In this project I have a div which is kind of a panel and another div that would be a square that I would put…
-
3
votes2
answers531
viewsHow to Drag and Drop button in a textarea?
I am creating an email editor and it will have some macros, I made some examples of drag and drop using images, I wonder if it is possible, or even if it is interesting to use buttons to be…
-
3
votes1
answer1067
viewsDrag and Drop HTML components with jQuery
I am developing a project, for my academic course and I have the following code: // Esse é um json que vem do banco de dados var Componentes = {"input": {"Label": "Textbox","Tag": "input",…
-
3
votes1
answer225
viewsDrag and Drop : When dropping image inside another image it disappears
Good afternoon, I’m making a Drag and Drop code and when dropping an image into another image, it simply disappears In the example of this site the images are correctly one on top of the others…
-
2
votes0
answers156
viewsDrag and Drop similar to the android shortcut screen
I’m using Android 4.0 to develop, I need to develop a drag and drop in my app and I will like to do as the shortcuts screen, a table 4x4 on the screen. With this the elements will have 16 defined…
-
2
votes1
answer168
viewsHow to take the events of a drag and move to php variables
I have this project below. In it I have a list of images where I can drag and bury as I need. So far it’s working properly the way I need it. I need to consider the position of the images as an…
-
2
votes1
answer742
viewsCSS interfering with element position while dragging
I have a script that allows you to click and drag an element through the screen and take it to the footer of the page, which has an area that attracts the dragged element. At the top of the page is…
-
2
votes0
answers71
viewsDrag & Drop in Jtree
I need to implement a Drag & Drop in one Jtree of 3 levels so that by clicking on one node of the tree and dragging it to another, some operations are performed. The scheme is basically:…
-
2
votes1
answer69
viewsJavascript - Doubt when manipulating div’s values with variables
Good afternoon ! I have a question regarding the manipulation of div’s values... When dragging an image from the div fundo1 (blue) or the fundo2 (yellow) to div conteudo, would like the values…
-
2
votes1
answer295
viewsDrag and drop with Angular CDK - Keep items in position after page refresh
I’m doing an angled drag & drop, but one of the rules I need in the application is that the item stays in the same place after the page is reloaded. Something more or less like the image. HTML…
-
1
votes1
answer743
viewsSend file to website and pick up the file path
I would like to send a file to a input guy file and recover the complete file path. If anyone knows anything like that will be very useful to me.
-
1
votes1
answer377
viewsEnable/disable drop in sortable (jquery)?
I’m working with the sortable jQuery UI, however, I am unable to enable/disable the drop for each ul with 4 li (with 4 disabled, with less enabled, always allowing to move the content of ul to…
-
1
votes1
answer42
viewsHow to get the item that is in drag in a Jquery Drag&drop?
I want to know how to get the item that is in drag and so I can change some properties of it. Follow the example below: According to the above example I need to change the item I am dragging and not…
-
1
votes2
answers1368
viewsHTML component for multiple item selection
I need to know the name of this component and the logic of this component in Javascript. If you can indicate any with 'drag n drop', would be even better. The texts in BLACK are the components and…
-
1
votes1
answer182
viewsI cannot remove an item from the drag and drop + sortable list
Hello, I have the following situation... I have to develop a screen where the rounds of a truck are mounted. To do this, the customer needs a "drag" feature on the vehicle parts. The screen should…
-
1
votes1
answer273
viewshow to get image positioning using draggable
how can I get through a scale input (left and top) of positioning the image that is being moved with draggable. The purpose of this doubt is so that you can save in the Database using PHP and Mysql,…
-
1
votes1
answer256
viewsDrag & Drop with parameter
I am making a dynamic form. Where there is a button that adds the field type (Date, Time, Text, Email, etc). And I wanted to sort these fields with drag and drop. I would need you to return the…
-
1
votes1
answer263
viewsProblems with Drag and Drop in Pure Javascript
I’m having problems with my Drag and Drop function in Javascript, the drag and drop is perfect, but when I change some images, they do the wrong change. For example: I have the x,y and z images, and…
-
1
votes0
answers477
viewsManipulating Drag and Drop values sortable with Jquery
Picture scheme: Problems: Order and quantity of the boxes of first column should not be changed. I could not leave them only for the purpose of DRAG, I mean, I can’t remove a box from the second and…
-
1
votes1
answer41
viewsPrimefaces Dragdrop does not fire event
I’m trying to do exactly what’s in the documentation on DataGrid I drag the components and loose in the p:droppable, but nothing happens, it gives a revert and does not create the table as in the…
-
1
votes1
answer80
viewsOpen Program with dragging file(PDF) and even recover the path
Hello, I am with a little complicated need, I am developing an application that sends pdf files to an application via webservices. I just want to let this problem begin in a few different ways. I…
c# winforms visual-studio visual-studio-2013 drag-n-dropasked 7 years, 3 months ago Renan Silveira 376 -
1
votes1
answer51
viewsAnimation and Transform Rotate with Reference Point
I’m wondering if it is possible to realize the following functionality: I did an encoding for drag and drop only in a specific area (The pink area) The red area is like droppable = false There is…
-
1
votes1
answer319
viewsFullcalendar - Block drag and drop when creating new events
Hello, I have a question in drag n drop function in Full Calendar. I am doing a web project and I need to limit the use in some functions, such as limiting the scheduling time (in my case in 1 hour…
-
1
votes1
answer52
viewsFeedback on a drag drop
I made a drag-n-drop with the jQuery, but I want that when the person fills in all appear a feedback, someone has some idea of how to do this, follow an example of my code <img src="image.png"…
-
1
votes1
answer253
viewsDrag and drop + Scroll
I am developing an application one I have 2 lists with droppable areas and a side menu with draggable items. When I use scroll the position of the item I’m dragging is changed by adding scroll…
-
0
votes1
answer1726
viewsHow to save the results of a "drag-and-drop" in table?
I need to do a drag-and-drop that looks like the image below, which is the system I’m developing. In the buttons referring to "1st Period", "2nd Period" and others, I put a function that returns the…
-
0
votes1
answer296
viewsDroppable jQuery event does not work
I have the following code to perform the Drag and Drop event: $(".device-profiles").draggable({ revert : true, start: function(event, ui) { dragColor = $(this).attr("data-color");…
-
0
votes1
answer82
viewsHow to trigger the drop event by pressing enter in Extjs
I wonder if there’s any way I can trigger a drop event by pressing enter on a treepanel. I’m not able to fire the event manually, which I’ve achieved so far: mediaCenter.getEl().addKeyMap({…
-
0
votes0
answers41
viewsDrag and Drop - Google Drive
Hello, does anyone know what is used or where to start to do that feature of dragging and dropping google drive files into folders? It gathers everything you selected, counts and plays in the…
drag-n-dropasked 9 years, 5 months ago Lef 1 -
0
votes0
answers52
viewsC# Drag and Drop without a specific event
I am developing an application in C#(WPF) and wonder if anyone knows how to get the data from drag n drop mouse without any event being fired. Is there any way to return this data from dragndrop…
-
0
votes1
answer429
viewsImage positioning in div with drag and drop
Good morning, what I’m looking to do is, a system where the user upload of an image and have a preview of how the image will be positioned in the div, may move it to the position it deems best. It’s…
-
0
votes2
answers226
viewsJscript and CSS - Rotate by running the div instead of an image
Good morning, I used a Javascript library to rotate an image by clicking on it, in a section of javascript I put what will rotate when clicking:$("#conteudo").rotate({ The problem is it’s spinning…
-
0
votes1
answer78
viewsDrag and Drop Fullcalendar
The documentation of fullcalendar is well summarized and I’m having trouble coding Drag and Drop. Someone could shed some light on how to start this function? eventDrop:function(event, delta,…
-
0
votes1
answer32
viewsApply JQUERY UI Revert Property
I have a problem handling the jquery UI bilbioteca. I have the code in the link below. This code provides the creation of clones from the textarea which are dragged to the field/area just below. I…
-
0
votes0
answers66
viewsApplication with Drag and Drop and other effects
I am preparing to do my TCC and the result of it will be an application. In this application I will model objects. To model this object the application will provide some shapes. These shapes should…
-
0
votes1
answer162
viewsDrag and drop Unity
I’m trying to develop a simple Android game in Unity, with drag and drop function. I used the following method to catch the object: public void drag(){ transform.position = Input.mousePosition; }…
-
0
votes1
answer94
viewsHow to create a file filter by dragging in C#
I am implementing the Drag files function to fill a Listbox with the file path. It works very well, but I would like to put a "filter" making it possible only to import txt. if it is not txt should…
-
0
votes1
answer88
viewsLike putting more than one drag and drop on the same page?
I have to put several drag and drop on the same page. I took an example and played in my application. Well it works. However when I try to insert one more of the same element, this second drag and…
-
0
votes1
answer119
viewsHow to reference an object from one Activity to the other?
Good evening, I am developing an application containing several buttons, in which you can drag a button and drop in a certain place already defined in the application, and each button has to open…
-
0
votes1
answer71
viewsDrag and Drop ( Drag an already dropped item )
Good morning!! I could use a little help on Jscript. I made a Drag and Drop code where I put a gif inside the contents div and I can move it freely. I’m just not able to do the following: When…
-
0
votes1
answer475
viewsDrag and Drop - Blocking ondrop on a div Child
I have a div circular (smaller and red) within a div circular (larger and blue). I would like to block drag and drop in the smaller circular area and allow only in the area blue, follow the example:…
-
0
votes1
answer60
viewsDrag & drop: Detect when element is not released in marked place
I’m working with drag and drop, and accurate to detect with JS when the element is not released in the marked zone, that is, when I drag the element but release it and it returns to its place. It is…
-
0
votes1
answer53
viewsDrag n Drop - Android
I made a Drag n Drop system, but when I insert the item, it seems that gravity is like top, when inserting new ones, they stand on top of each other, like drop where I drop the finger? The items are…
-
0
votes1
answer43
viewsError in columns with sortable, how to resolve?
I have a 3-column scheme containing cards, I need these cards to be dragged from one column to another and rearranged within the same column. I got jQuery to make the cards draggable, but I can only…
-
0
votes0
answers340
viewsPuzzle with DIV
In my games in HTML and Javascript, I tried to create a mini puzzle with the block and the fitting place where it will be placed. function parseNumber(num) { return parseFloat(num.replace(/[^\d]/))…