Displaying 20 results from an estimated 8000 matches similar to: "sortable_element behavior change from 0.13"
2006 Mar 03
8
How to use the sortable_element tagname option?
I''m having some difficulty adding drag-and-drop sorting to my
application. I''m hoping that someone can help me figure out what I''m
doing wrong:
#view
<table>
...
<tbody id="item-list-body">
<tr id="view-item-<%= item.id %>"....</tr>
</tbody>
...
<%= sortable_element(''item-list-body'',
2006 Jul 17
1
sortable_element - Altering defaults set by rails
Hi there, I''ve got the following code to generate two sortable elements
but whenever someone drags and drops an item, i only want it to return a
serialised list of the items in categoryartworks, the unlinkedartworks
can be in any order and I don''t care. I can then delete those artworks
that were in category artworks but aren''t in the serialised list, plus
reorder
2005 Jul 20
3
examples of drag n drop
Sorry if this sounds cynical, ( i do love script.aculo.us scripts ) ,
but I am wondering if people know of some good real world
examples of uses of drag n drop and sortable lists.
such a cute script will likely be *ab*used as much as it is used.
obviously the point here is to use script.aculo.us to improve
the user interface rather than just have some k00l eFX.
e.g. the drag n drop instantly
2006 May 30
1
sortable_element does not initiate AJAX calls
Having an odd problem with sortable_element. The :url option doesn;t
seem to actually work. No AJAX calls are being generated. I can tell
because Firebug extension does not show any AJAX requests, and the
development.log file does not do anything when droppping the items in
new positions.
Here is the code I am using for sortable generation:
<%= sortable_element
2006 Apr 05
0
Submitting sortable_element as part of form
Good evening all...
I''ve been marveling over how easy it is to make amazing drag-sort
interfaces using sortable_element. My users are really blown away by
how intuitive and simple these controls are. However, in my current
project I''m trying to use it in a particular way which has me stumped.
Normally the sortable_element makes an AJAX request whenever it is
changed.
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 Jun 13
3
Weird flicker effect in IE6 (sortables)
Hello everyone
I have made some strange expirience yesterday. I have an unordered list with
sortable list items (basic). Within these are various contents (forms, divs,
more lists) etc..
Now on only some of them the whole page (all text) begins to flicker /
redrawn in Internet Explorer 6 if i pick up a dragable and move it above its
original position (like moving it above the ghost of the
2007 May 29
0
Ajax sortable_element refresh
Hi,
I have the following ajax example, with a list of counters, and two
buttons for adding/removing elements. The list is sortable.
There are two things that I don''t know how to do:
. remove an elemet
. when I add a new element to the list, that element doesn''t become
sortable with the rest of the list
Thanks,
hugo
#### View
<html>
<head>
<title>Ajax
2005 Jul 18
2
scriptaculous dragdrop.js empty list problem
Hi,
I''ve just been having a look at the scriptaculous drag-n-drop library, which
looks exceedingly good. I''m running across a show-stopper here, though -
something that''s cropping up in both the online demos and my own test scripts. If
I set up two lists so that I can drag items between them, then if either list
becomes empty, I can''t drag elements back into
2007 Aug 29
0
sortable_element :onUpdate
First time poster - hope I''ve done sufficient homework to get more than an
rtfm:
In my view, I have a <ul> list wherein each list element is identified with
an id, thusly:
<ul id="todoHandle">
<% for task in @tasks %>
<li id="task_<%=task.id%>">
<%= task.Description %>
</li>
<% end %>
2011 Sep 23
1
Need hint. Refresh sortable-list after draging element
Hello,
i implemented a dragable list semilar to railcast 147<http://railscasts.com/episodes/147-sortable-lists> and
it works fine.
Each item of my list has a value wich is accumulated ... like this
- Value A = 3, Sum = 3
- Value B = 4, Sum = 7
- Value C = 1, Sum = 8
When i drag Item C on item A i get this
- Value C = 1, Sum = 8
- Value A = 3, Sum = 3
- Value B = 4,
2006 Mar 30
4
possible scriptaculous bug
I have two sortable lists, one after the other. I can drag from the first
to the second but not from the second to the first. The behavior is
consistent if n > 2. For example, I can drag from 1 to 2, 3 or 4 from 2 to
3 or 4 and from 3 to 4, but not in the reverse order: I can''t drag from the
4th list to anything (besides itself). From the third list I can drag only
to itself and 4.
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
2005 Oct 25
0
Select & drag multiple elements
Hello,
I have started looking at adding support for selecting multiple
elements, and then being able to drag & drop them together.
The application is a photo site, where it would be too tedious to drag
thumbnails to albums one by one.
The idea is to let the user select multiple items by clicking,
shift-clicking for a range, or ctrl-clicking to toggle the selected status.
My approach is
2005 Oct 27
0
Hello. About the dragable list in script.aculo.us
Hi. I''m trying to make a ''special'' dragable list with script.aculo.us.
Special in that only one of its <li> elements can be draged.
I first tried to use the ''only: someclass'' for the class that I wanted to
move in the Sortable.create method, but that disabled movement.
I''ve never even tried javascript before, so my reaction to this
2006 Apr 24
1
dragdrop.js problems - workaround here
Hello, I am not sure how many people are using the shiny new tree
version of dragdrop.js - well it seems that someone arbitrarily
changed part of my implementation and has broken the functionality
with rails:
864 serialize: function(element) {
865 element = $(element);
866 var options = Object.extend(Sortable.options(element),
arguments[1] || {});
867 var name =
2005 Jul 28
1
Nested, sortable list-items - works as expected in IE, not Mozilla Firefox
Hello all. First, thank you for a great library!
I would like to have nested lists that are sortable. I found that I
needed to add the "handle" option, which is fine.
However, Firefox doesn''t drag any child (nested) lists along with the
parent. Internet Explorer seems to work just fine.
Here is my test page:
http://www.dynamiteweb.com/sorttest/test_drag_lists.html
I did
2008 Feb 15
1
Sortable limit number of elements
Hello,
Well, i need to limit the number of elements in a sortable. I new to
scriptaculo but i have lots of experiencie with javascript.
Since limit the number of elements is not supported by Sortable i
would like to implement, i already took a look at the Sortable class
in dragdrop.js and it looks like that onHover and onEmptyHover deal
with the update of the UI, however I''m not unable
2006 Jun 24
0
Sortable with sortables? this.destroy not a function O_o
Hi all
I am creating sortable list with the builder. Now i want these sortables to
be a sortable aswell. So i wrap a div around them and run sortable create on
the main-container.
I have it like so (simplified):
var myLists = new Array(); // start a empty array for push
var mainDiv = ''main''; // some already present div to carry all stuff.
function newList() {
var sortlist
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