Displaying 20 results from an estimated 20000 matches similar to: "sortable or drag/drop for tables"
2006 Jun 15
2
Drag and Drop Sortable Tree
I''ve gone through Chad Fowler''s recipe for creating a drag and drop sortable
list, and have been trying to extend this to a sortable tree. Has anyone
come up with or seen code which allows drag and drop sorting (altering the
position and parent_id variables of the relevant objects) but for data in a
nested tree rather than a list form?
- Justin
2008 Jul 01
2
Sortable, stop event on drop
I''ve got a "Sortable" list that is sorting just fine. But in the list
items, there is a link. If you mousedown on the link, drag it to a
new location and mouseup, the list gets reordered appropriately, but
then the link is followed (you did - after all - click it). Is there
a way to either stop the mouseup/click event before activating the
link after you''ve dragged
2007 Jun 05
1
Discussion on drag-drop-and-sortable
No rocket science on the surface, but there is something slightly
clever happening here - note that the green scriptaculous draggables
take on a different CSS class or something when they''re moved over the
right hand droppable.
This warrants a look under the hood ...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2006 Mar 31
2
RE: drag and drop sorting with an empty lis
I ran into this issue too. My solution was to add an "onUpdate" function to
the sortable that tests the container to see if it''s got any children or
not:
function is_empty(container)
{
if ($(container).hasChildNodes()) {
Element.removeClassName($(container),''empty'');
} else if (!$(container).hasChildNodes()) {
2007 Nov 02
3
script.aculo.us: onUpdate in Sortable.create
Can''t seem to get the onUpdate to work in for a sortable list. I am
following the documentation and the included functional tests but
nothing is firing for me. Any idea why?
Sortable.create(''list1'', {
tree:true
, onUpdate:function(sortable){
alert(''onUpdate'')
}
, handle: ''handle''
, scroll:window
,
2007 Jul 19
1
Storing order of sortable objects in RoR
I have two sortable lists that you can drag and drop to and from. Each
object in the lists have a position field in the object''s table. I
want to be able to update the position in the database automagically
once a user has sorted the list.
I can drag and drop just fine but I am not able to store the new
positions in the database.
I am trying to use Ajax.request in the onUpdate callback
2007 Aug 27
4
Sortable + Table = Ouch!
I have an HTML table I am trying to "retro-fit" with a sortable such
that a cell in one column/row and be moved to another.
What I have tried in tyerms of formatting looks akin to:
<div id="schedule">
<table>
<tr>
<td><div id="one">Some Text</div></td>
<td><div
2006 Nov 24
1
sortable - after complete dropping element want to send ajax reqeust with id of elements: draggable and droppable
Hi all. I have specific situations - I use sortable on html list, and
after I move elements I want to do ajax reqeust to serwer with the id
of dragging element and id of the element that was droppable. How to do
it? which function in Sortable class i have to overrider or modify? i
try to modife onhover method in sortable and put a ajaxRequest call
before methods
dropon.parentNode.insertBefore
2006 May 24
1
Sortable: Ajax not firing?
Using Rails to generate a sortable list, I get the draggable/sortable page
elements, but Ajax never fires back the post-sorted list. (I''ve checked with
IE & Firefox, the "save this order to the DB" controller hasn''t been
called.)
The View:
<p>Drag to sort.<span id="sort_info"></span></p>
<ul id="sort1">
2006 May 28
1
Sortable.create containment:
hi
i got a problem with a Sortable.create.
i got an array containing the ID of the elements i want to make an sortable
of, that is no problem, but i want to be able to drag between the sortables
and that where my problem is. i dont know how to assign an array to
containment:
until now the script looks like this:
for (i=0;i<id_gruppe.length;i++)
{
Sortable.create(id_gruppe[i]
2005 Dec 05
3
Multi-level drag and drop in scriptaculous?
I am trying to create a screen like Google''s personalized home pages or
start.com, i.e., with draggable sections, with the extra feature that
the child items under the parent headings could be dragged and dropped
from one parent heading to another.
I have set up nested droppable sortables (dropOnEmpty=true) but the
behavior is very inconsistent, i.e, parents do not become droppable
2007 Apr 13
2
Sortable - Droppable interaction
Hi there,
I''m started to use scriptaculous yesterday and it''s really great.
Hovever, there is one problem that I cannot solve:
I have a page with a sortable list and a droppable "trash can". I
would like to drag and drop items between the list and the trash can,
but it don''t work. Which options should I set to make it works
correctly?
Thanks!
2006 Mar 22
2
RE: Support for window scrolling for drag anddrop
Will that work with Sortable as well?
> -----Original Message-----
> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-
> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Thomas Fuchs
> Sent: Wednesday, March 22, 2006 12:48 PM
> To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>
2007 Nov 09
0
iframe is reloading during each sortable drag/drop point
We are creating a simple widget portal for our site and trying to use
Sortables. Each of our widgets is an iframe. But when you try to
drag an element containing an iframe the Sortables api causes the
iframe to reload at each possible drop point. This causes the ui to
shutter and become unusable.
I have narrowed the issue down the onEmptyHover where
dropon.insertBefore is called. Is there a
2008 Mar 11
7
sortable scroll in div problem : dragged element doesn't follow the mouse pointer
Hello,
I''m facing a strange problem with a long list of Sortable items in a
container that has an overflow:auto.
If I drag an item from the top to the bottom, the container div is
scrolling, but there is a difference between the position of the
dragged element and the mouse pointer.
An example is better that a thousand words.
Try to drag the first item at the bottom of the
2006 Feb 25
1
Re: Strange behaviour with sortable
Hi,
I''m having strange problem with Sortable.
I''m trying to do something like google homepage, netvibes and others with 3
sortable lists, just to prouve someone it''s really easy with scriptaculous.
But maybe it''s not so easy :)
I''ve attached what I did, the code looks good to me but when I drag the
upper left widget to another column, the widget under
2005 Jul 07
2
Allowing drops on "empty" sortable
Hey folks,
On the Drag and Drop demo page in the Sortable Lists Demo section:
http://script.aculo.us/drag-and-drop
If you drag all of the items from the first list into the second list,
it appears that you cannot drag a list item back into the first (now
empty) list.
Is there a way to allow a Sortable that is empty of draggable items to
accept dropped items?
Danilo
2006 Mar 07
1
Sortable trouble
Hi everybody,
Could somebody have a look at a little sortable example at
http://www.weisshuhn.de/diagnose/sortable.html
It implements two Sortables and a Draggable. You can drag elements
from the "source" Sortable to the main Sortable, sort them (surprise)
and drag them to a trash. Whenever you drag from the "source", a new
element is created (by cloning an invisible
2006 Jun 14
3
sortables and onClick events firing
I have a page that I have been tasked with adding sortable support to, and
the div elements that are being dragged have a <a href> in them with an
onClick handler that opens a new window with a preview. Is there a way to
keep that onCLick from firing when a sortable is dropped?
Sam D
_______________________________________________
Rails-spinoffs mailing list
2005 Jul 14
1
Dropping on empty script.aculo.us sortable lists
I have a need to have two sortable lists with the ability to cross drop
items between the list. I am using the
script.aculo.us<http://script.aculo.us>library. All is well until I
empty one of the lists completely out, at which
time I cannot drop anything in to the empty list. I have used CSS to set the
height of the <UL> so I have a large target to drop on.
In my efforts to make it