droppable

jQuery Sortable + Droppable z-index problem

I am having a probelm with the z-index of my sortable object not being above my droppable. If you visit http://clareshilland.unknowndomain.co.uk/. Press Ctrl + L to bring up the login screen. Enter the username clare and the password shilland. It will then load in the admin bar and if you click manage gallery. A pop down thumbnail view...

jquery ui drag and drop showing feedback

Hi there, I have some drag and drop functionality on my website, I am wanting to hightlight the area that is droppable with a chage in border color when the draggable element is clicked/starting to be dragged. If the click/or drag stops I want the border of the droppable element to change back to its origianl state, I currently have th...

jQuery 1 draggable list & 2 sortable destination lists - bugs...

Hi, I have a list (List1) which I can drag boxes from, and two lists where I can drag List1 boxes to (List2 & List3). I have 'sortable' code for List2 & List3 which reformats what I've dragged from List1 (eg. it changes the colour of the box etc using the 'receive:' function. Say List2 boxes turn blue & List3 boxes turn red). The code ...

Problem with jquery-droppable in Chrome

I have a simple application that users jquery-ui's draggable and droppable. In Firefox, it works perfectly. In Chrome, however, I'm having problems. This is the code: $(".cell").droppable({ drop: function(event, ui) { var originalTarget = event.originalTarget; ... } }); In Chrome the 'event' obj...

How to drop larger object on a smaller one when near edge of the containment?

I'm trying to drop a large box onto a smaller box. The large box seems to be 'over' the box only when its very center is inside the smaller box. Can I change the part of the big box which needs to be over the smaller one? Why? Because it all works fine until I add a containment. When the small box is near the edge of the containment t...

jQuery Droppable, get the element dropped

A small question hopefully with a simple answer, I am using jQuery draggable and droppable to place items into a dock. Using the below code for the drop. $("#dock").droppable({ drop: function(event, ui) { //Do something to the element dropped?!? } }); However I couldn't find a way to get...

multiple droppable

Ive have multiple droppable divs (which all have the same size) and one draggable div. The draggable div is 3 times bigger than one droppable. When I drag the draggable div on the droppables divs I want to find which droppable has been affeckted. My code looks like this: $(function () { $(".draggable").draggable({ drag: f...

Make jQuery sortable items droppable to their peers

I have a sortable list (of tasks). It helps prioritize tasks, so I want to keep this functionality. Now I want to add subtasks to the functionality: I want to enable users to drag one task over to another task and drop it there to turn it into a subtask. Applying .draggable() and .droppable() to items that are already sortable has no e...

how to revert position of a jquery UI draggable based on condition

I have an element which is draggable and an element which is droppable. Once the dragged item is dropped on the dropzone I am trying to execute the following jquery psuedo code: if(draggedelement == value){ $(draggedelement).hide(); } else{ $(draggedelement).revert(); } where the revert() function moves the dragged item back to it...

Jquery Droppable Demo Help

I am testing out the Jquery droppable photo manager demo: http://jqueryui.com/demos/droppable/#photo-manager Currently when the photo is deleted it is moved to the trash bin. How can I have it copy the image and move it to the trash bin so that it appears in both places?? This is the code: <script type="text/javascript"> $(fu...

Jquery: Show snap-to gridlines using droppable and draggable?

I am trying to show a $f00x$f00 grid (20x20 or 30x30 etc) (with gridlines) that an image can be dropped onto. I'm not sure how to get the grid to display does anyone have any ideas? ...

How to make a jquery object un-draggable?

Hi, Looking at the jquery demo at http://jqueryui.com/demos/droppable/#photo-manager, I'm trying to make the images in the Trash undraggable and am unable to do so. I've changed the demo so that the Gallery is no longer droppable, but the items in the Trash still follow my cursor if I mousedown. Of course, they have nowhere to go, so ...

.hide()/.show() and Droppable

I have a problem where the element calls .show() when the draggable triggers drag, does not let me drop into the droppable. How can I fix this? $(document).ready(function() { $(".folder").droppable({ greedy: true, drop: function(event, ui) { $(".folder").hide(); }, tolerance: 'touch' }); ...

JQuery draggable update array after delete

I'm not sure of the best way to do this, I am certain that my JQuery is "clumsy" to say the least but it gets the first part of the job done. I am dragging "products" to a basket like this: $j('#basket').droppable({ accept: '.productsimg', drop: function(ev, ui) { $j(this).append(ui.draggable.clone()); $j("#basket .de...

How do I stop firing two events using sortable and droppable?

Hello all, I'm working on an interface for dragging and sorting questions and their choices. I have a toolbar on the right with the available questions/choices and the list of current questions/choices on the left. The list on the left is a droppable and a sortable. The items in the list on the right are all draggable and connected to t...

jQuery droppable 'over' event not firing when mouse is over draggable

I have a list of tasks that are all draggable and droppable. All of them have an 'over' event handler to make sure they light up when another task is hovering over them. This is not working fully as I want it to. When I start dragging one task, the other tasks don't light up as expected, except when the mouse is not actually above the d...

How do I trigger the Drop event with jQuery UI Droppable without actually dragging and dropping?

I have a droppable with a drop event handler: $(this).droppable({ drop:function(){ console.log('OMG You Dropped It!'); } }); I have a draggable: $(this).draggable(); What I want to do is trigger the drop event handler on the droppable without actually dragging and dropping the draggable. I want to simulate the actual behavi...

jquery droppable accepting more than 1 element / selectors

cont from here: http://stackoverflow.com/questions/1444469/jquery-droppable-accept $(".droppable").droppable({ accept: function(d) { if(d.hasClass("foo")||(d.attr("id")=="bar")){ return true; } } }); what if i wasn't targeting an element but a set of elements? like "ul#moo li" for example. how wou...

jquery droppable target

If I have a table with a lot of cells, lets assume 50 rows x 50 columns, is the application of a jquery "droppable" to each cell inefficient? Can I assign the droppable to the parent TABLE, for instance, and then somehow capture the actual element (ie. the TD) where the item is dropped? If I remember my event delegation correctly, in an...

jquery ui - referencing dropped element

So I know that if an element is droppable, then you can set an option like: drop: function(){ alert('something was dropped'); } but how can I set it so I can reference the element dropped onto it, so I could do something like this: drop: function(){ alert(elementId + ' was dropped'); } Thanks. ...