drag-and-drop

c# How to detect and process a .URL file type on DragDrop event

痴心易碎 提交于 2019-12-11 04:04:55
问题 I have done quite a few research, but there were no fruits so far... The only links that I found are somewhat similar to my situation don't even work either: Simple drag and drop example How can I tell a shortcut from a file in a C# drag and drop operation? Drag and Drop Files with C# drag and drop file into textbox e.Data.GetDataPresent not working in WinForms drag-and-drop handler? Basically , first of all, I want the code to be able to recognize that the file is of a " .url " extension, or

Javascript : drag and drop image tag

。_饼干妹妹 提交于 2019-12-11 03:51:38
问题 I wanted to know how to do a drag and drop image tag using javascript. I know html5 each element can be dragged but I wanted to make it work on older browser. I have made the drag and drop using javascript and it worked fine except in ie and firefox when mouse down, the mouse move event didn't react unless the user click it, and that is the reaction of ie. On firefox, the image got changed to semi-transparency and draggable but my code that dragging it. Can anyone know how to solve this

(jQuery plugin to) drag & drop answers in multiple choice quiz

血红的双手。 提交于 2019-12-11 03:48:28
问题 I'm making a webpage where the user has to connect elements from two lists in a quiz. For example, imagine a quiz question where you have two lists, one with countries and one with capitals, and the user has to connect the capitals to the correct countries. Preferably, there should be a way for the user to drag the elements from the second list to an area next to the elements of the first list. Like this: Here, you would drag the blue boxes into the gray rectangles. Is there a jQuery plugin

Realtime drag and drop in Swing

馋奶兔 提交于 2019-12-11 03:41:37
问题 I am using drag and drop in swing to place a button on one of four components. To make it more appealing instead of just the mouse indicating something being dragged (which is working fine) I wanted to show it in real time. This works except if the mouse goes back over the component being dragged the drag listener registers a dragExit event which removes the button which causes the listener to focus back on the parent component and fire a dragEnter causing a flicker. I need to make the button

drag-and-drop image upload not working on server

流过昼夜 提交于 2019-12-11 03:23:50
问题 I am trying to implement a drag-and-drop image upload. I found a rather simple script online and adapted to my use. On my local installation the file uploads perfectly fine, but not on the server. From my debugging attempts the $_SERVER['HTTP_X_FILENAME'] does not even get set by php. I tried the following: - Making sure that the upload folder is set to 755 - Changing the php temporary upload path and increasing the maximum allowed file size No php or js errors of any kind occur. Since I have

Android ListView custom header

天涯浪子 提交于 2019-12-11 02:28:02
问题 I have a custom listview, which is re-arrangeable(drag & drop) and obviously scrollable. I need to add a custom header with this listview which should scroll with the list. I have tried "listView.addHeaderView(header)" with a custom header layout. But header becomes messed up during list re-arrangement. So I don't want to use addHeaderView(...). I have also tried to put my activity layout which is a LinearLayout, inside a ScrollView and expand the list as suggested here - How can I put a

Ordering list with jQuery drag and drop

血红的双手。 提交于 2019-12-11 02:22:04
问题 I need a jQuery to order a list like this: http://jqueryui.com/demos/sortable/ But I need moving multiple items at once with the CTRL key example. Do you know this script? 回答1: You might want to take a look at http://www.myphpetc.com/2009/11/jquery-ui-multiple-draggable-plugin.html as seen in jQuery drag'n'drop multiple elements 来源: https://stackoverflow.com/questions/11177735/ordering-list-with-jquery-drag-and-drop

Javascript - drag letters in word (Rearrange)

岁酱吖の 提交于 2019-12-11 02:21:48
问题 I am currently working on a browsergame called "WordShuffle". (words are german at the moment for test purpose, if you want to play) My progress is going on pretty well, but I decieded to change the way how you play the game. At the moment you have to quess the word by typing your guess into a textfield. So my idea is now that people are able to rearrange the letters in a word by draging and dropping it in the right order instead of typing it into a textfield. Since I am not good at

how to get start and end date of external dragged and dropped event on fullcalendar

懵懂的女人 提交于 2019-12-11 02:17:34
问题 I have a quick question about fullcalendars drag and drop functionality. Here is my JS Code $('#calendar').fullCalendar({ header: { left: 'prev,next today', right: 'title' }, editable: true, droppable: true, // this allows things to be dropped onto the calendar !!! drop: function(date, allDay) { // this function is called when something is dropped // retrieve the dropped element's stored Event Object var originalEventObject = $(this).data('eventObject'); console.log(originalEventObject.title)

Dragging and reordering listbox items in Windows phone

感情迁移 提交于 2019-12-11 02:10:02
问题 I have been looking for a drag and drop listbox, but I guess there is no such default control. A bit of searching has given me,Jason's Blog in which he has pulled it off very gracefully.. In the code he has written, there is a the drag and drop handler which is present at the right end of every listboxitem.. You press on the handler and move the item up or down. I am trying to implement the same on the long press of the item.. He uses a drag interceptor which is basically a canvas and it sits