Displaying 20 results from an estimated 1000 matches similar to: "drag'n'drop or sortable"
2006 Dec 10
0
Rails Recipes: Drag'n'Drop Sortable List with unique index?
Hi all
On page 31 of the "Pragmatic Programmer''s Rails Recipes" book there''s
the recipe "Creating a Drag-and-Drop Sortable List". I think this is
very useful, but sadly I have a unique constraint on my product_id and
position fields (because the acts_as_list scope is product_id).
When I try the recipe then Rails crashes very very badly: I have to
restart the
2005 Sep 01
0
2 issues with Sortable control [Version 1.5-pre3]
Thank u Thomas...U just made my day !
Here the result www.claudehussenet.com
Drag and drop of portlets !
See
http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo
-- uses SVN trunk code, and the new dropOnEmpty
option.
Thomas
Claude Hussenet
Independent J2EE Architect Consultant
http://claudehussenet.com
____________________________________________________
Start your day
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 Feb 01
1
Sortable onUpdate problem
Hi,
I have two sortables with different options (but same tags. just
''li''). When I drag an item from sortable1 to sortable2 I want it to
gain the options that the sortable2 items have.
I''ve tried all day to understand how Draggables and their observers
are destroyed but I keep gettting buggy behavior. Part of the problem
is the draggable and the draggableObserver are
2006 Feb 19
2
Sortable list (scriptalicious) and updating database
I have made a sortable list which is sortable by dragging & dropping the
list elements. It works, but the order of the elements will not be
updated in the database. Hopefully someone could help me, or tell me
what I''m doing wrong.
Thnx!
Rgds,
Eric
Controller: album_controller.rb
class AlbumController < ApplicationController
def show_sort_album
@photos =
2007 Feb 12
0
Scriptaculous - extending draggable via sortable
Hello,
I have created a Yahoo style Drag and Drop using Scriptaculous Drag
and Drop. I have hooked my custom functions to the Drag and Drop using
the following code:
new Draggable(element, {revert:true, ghosting:true, handle: handle,
onStart: CollectionDragDrop.dragStart, onEnd:
CollectionDragDrop.dragEnd,
onDrag: CollectionDragDrop.dragMove,
reverteffect:
2006 May 29
1
Re-orderable column DataGrid + Patches for Sortable.delay and Sortable.ignorePositionXY
I would love to get some feedback and test a patch to rev. 4380.
First, the money shot - check out this demo of a scriptaculous DataGrid:
http://development.finetooth.com/?p=13
I''m using the <tr> as a sortable with the <th>''s as the sortable elements.
The Patch file:
http://www.commoner.com/~lsimon/scriptaculous/delay_and_ignorePosition_forSortables.diff
The patch
2006 Feb 10
2
Sortable + Draggable : doesn''t follow the mouse horizontally
When a ''draggable'' element is made ''sortable'', it no longer follows the
mouse horizontally when you drag it.
Is there a solution/workaround?
TIA
Alain
2006 Feb 17
2
Sortable list: how to create a triggering "handle"/deactivate part of the <li> element?
Hi all,
When using sortable lists, a click anywhere in a <li> element will
trigger the "sort_by_dragging" mode, and have the clicked element follow
the mouse. The active area is the entire <li> element.
Is there a way to either :
- limit the active/triggering "area" to a part of the <li> element
(like a luggage handle)
or
- prevent a part of the
2005 Jul 01
1
drag problem
Hi - my first post here so first of all can I say how impressed I am
with this library
Now to my first question - I''m simply trying to make a div draggable,
here''s my test page:
http://localhost:85/folio11.co.uk/js_tech_demo/scriptalicious_test.html
what seems to be happening is that the first drag works fine, but on
subsequent drags the div''s initial coordinates
2005 Dec 28
3
Sortable - can we make one or more elements in a list sticky?
In a sortable list, is there a way to say, pass a className whereby some
of the elements in the sortable element would not become
draggables/droppables? If not, it seems like it could be implemented
similarly to the handle option.. Any interest?
Also - I submitted a patch that adds the option "delay" so that draggables
in a Sortable won''t truly become activated until after the
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
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 01
0
Script.aculo.us: Dynamic Sortable List Problems
This is my first post to this mailing list so I hope its in the right
location.I''m trying to use a list of draggables (not sortable) which I can
drag into a droppable div. The goal is to create a new item, not to move
from one list to the other.
When a new draggable is dropped, a new div is added to the droppable div and
a sortable is created. Everything is working fairly well, to
2005 Aug 04
0
Appended element in a sortable
Hi,
Is there any way to get a sortable to recognize that a new element has
been appended to it without calling Sortable() again? The element gets
added using an AJAX call and it''s not draggable until after I recall
Sortable().
Also, any predictions on when the sortable tree is going to be
included in the library? I''m really looking forward to using it.
Thanks,
Eric Zwick
2006 May 19
0
Sortable - observing outside of the container
I''m wondering if anyone''s come up with a way to somehow make a Sortable look at X or Y
position relative to the droppables so that the mouse doesn''t have to be
over the container for the droppable to fire.
For instance, take functional Sortable test #1.
Grab Item #3 and then slide the mouse over to the left, past the dot
(essentially outside of the <ul>). Now
2006 Feb 24
0
Newbie Question - Dropping to a Sortable
Hi,
I am fairly new to Ajax and script.aculo.us - I have looked into the
mailling list archive but could not find a simple enough answer to my
problem.
I want to allow users to
- drag an item from list A and drop to listB, leaving the list A item in
place (as in the Drag & drop shop example,
http://demo.script.aculo.us/shop)
- re-order list B to their needs.
I do not want list A to be
2005 Sep 18
0
Sortable Dropable, Dragable
I''m trying to create an application where you pick from a list of items
to add to an album. Once in the album they can be sorted or removed.
I''ve run into nothing but bugs trying to get this to work.
I currently have each item draggable in the list. Once it is dragged
onto the album rails takes over and adds the id to an array and renders
the album partial. All of the items
2006 Jul 17
0
Sortable
Is there a way to know what is the ID of the element during the onUpdate
handler?
I''ve seen in Draggable and the notify(''onEnd''9 function, but I''m not
able to register an handler on this function.
Tkz!
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
2006 May 19
6
Multiple dynamic Sortables
I''m writing an appliation that contains several dynamically created lists. I
had hoped that the following method for using the Sortable library from
scriptaculous would work:
1) create the list
2) create a Sortable for it
3) create another list
4) create a Sortable for it
and so on. Unfortunately this doesn''t work. I can''t find any info in the
documentation for