Displaying 6 results from an estimated 6 matches for "options_for_droppable".
2006 Jan 23
8
question about Sortables
So, is there any way to specify a sortable to only do a callback when
the dragged item is dropped? As it is, the onChange is called whenever
you move the draggable to a new element (even if you don''t drop it), but
I''d rather only call my function after they drop it to avoid unnecessary
additional server calls. It looks like Droppable supports an ''onDrop'',
but
2005 Jul 18
1
fix for scriptaculous dragdrop.js empty list problem
...e parent element (the UL tag or
whatever), and add an extra property to it to mark it as the parent of the list
in question:
for (var i = 0; i < elements.length; i++){
//register children as droppables, as before...
}
element.isParentDroppable=true;
Droppables.add(element, options_for_droppable);
options.droppables.push(element);
Then under options_for_droppable.onHover, I test for that property:
onHover: function(element, dropon, overlap) {
if (dropon.isParentDroppable){
dropon.appendChild(element);
if (dropon.sortable){
dropon.sortable...
2005 Nov 18
0
Passing "accept" option through a Sortable
...a JavaScript expert
(Scriptaculous & AJAX have convinced me to finally start learning),
so I''m kinda fumbling in the dark here.
Thus far I''ve made two minor changes to ''dragdrop.js'':
o Added ''accept: options.accept'' to
''options_for_droppable'' (line 395)
o Added ''accept: options.accept'' to the metadata for handling
dropOnEmpty (line 409)
Things work OK, except for the following case:
1. There are two lists
2. List #1 contains one items with CSS class "capitalized" and
another with CSS cl...
2005 Jul 18
2
scriptaculous dragdrop.js empty list problem
...them, then if either list
becomes empty, I can''t drag elements back into it.
Looking under the hood in dragdrop.js, the Sortable class appears to set the
LI elements as drop targets, so that when an element drops onto them, they work out
how to add it as a sibling (I''m looking at options_for_droppable:onHover here,
lines 46-80 ish). The behaviour that I''m seeing makes sense from this code - no
LI elements left in the list, so nothing happens. However, from the user''s
perspective, it''s
going to be pretty frustrating, allowing the app to get into a dead-end state from
wh...
2005 Sep 19
5
accept on Sortable
...Large mini-app (draggable) onto a Small container (droppable). It would
be great to have the ''accept'' option from the Droppables available for
the Sortable.
I tried a bit of coding but did not work. I added the "accept" option to
the Sortable.create and to the "var options_for_droppable" but instead
of not being able to drop the big app on the small container I could
drop it onli at the bottom of the target. It actually works for the
small apps, I can drop and sort everywhere.
Kinda hard to explain, check it out on the link above, try to move the
big app in the middle to a s...
2006 Jun 15
12
Why such bad performance with IE ?
Regarding DragDrop
I am wondering what the deal about Internet Explorer 6 is. My application is
near to final and now while testing browsers all but the IE6 are running as
supposed to. Any other browser is performing smooth movement while IE
compared provides a very bad expirience. I''ve seen some "tuning" infos on
this list but they are either outdated or not actually working