Displaying 20 results from an estimated 20000 matches similar to: "restricting movement in sortable list"
2005 Oct 27
4
Nest sortables?
Hello All,
I''m wondering if it''s possible to nest sortables:
<ul id="first">
<li>One</li>
<li>Two</li>
<li>
<ul id="second">
<li>Three</li>
</ul>
</li>
<li>Four</li>
</ul>
<script>
... create sortables out of
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 Jun 13
0
sortable trees and rjs updates
Hello,
I''m experiencing some odd behavior with a sortable tree when I try to add an
element using javascript via rjs. What''s strange is that things work fine
if I have moved any item on the list prior to adding a new element but
produce odd results if I haven''t.
My tree is a normal nested group of ul''s and I have the call to
Sortable.create in a partial so
2005 Aug 24
1
Strange Bug - Dragging a sortable filled with sortable - the bigger one "stays"...
*** don''t know if i''ll be clear... if not, tell me
Hi.
http://favoris.lichenmedia.com/untitled.htm
I don''t know why, but when I drag those sortables (tagged with the handle
handle) filled with the sortables (the lists with lorem ipsum) The
handled-one "stays" where you dropped them.
When you drag the li between the uls that are the big containers, no
2006 Feb 24
0
Adding a new Sortable
Perhaps this is elementary, but I''m having trouble finding something in the
documentation. I''m attempting to create a page with a form for new data
submission and below it a list (a Sortable) of the various records. I''m
unsure how to make the form so that it will automatically create a new
element to the Sortable with the data that gets Ajaxed back from the
server. Is
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 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
2007 May 25
2
Sortable onChange fires for every mouse movement
Anyone found that sometime between 1.6.4 and 1.7.1 beta releases of
Scriptaculous that something has changed with the way that the
onChange is fired?
In 1.6.4 it fired once, now in 1.7.1 beta it fires everytime you move
the mouse.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs"
2006 Jan 26
2
question about sortable demo
Hi,
I''m new to the script.aculo.us library and AJAX. Of course, I already
want to use a sortable list for something more complicated than the
sortable list demo. In the example below, what is the structure of
params[:list]? I don''t know what I can do with it once I have it in my
controller method.
Thanks,
Peter
# view
<ul id="list">
<% 6.times do |i|
2005 Jul 25
8
My try on nested sortables
Hello,
please take a look at http://test.reasonmaker.com/sort/ where I made
some hacks to allow for nested sortables. I need a hierarchical,
sortable list, so I hacked away.
It generally works quite nicely, but:
( - The code needs my debug stuff and failed attempts removed )
- The code needs to be adapted to also work with vertical sortables.
It probably breaks vertical sortables.
2008 Feb 28
0
Sortable scroll offset
I am experiencing a problem with scroll when dragging items to my drop
area. I tried using the scroll option, looked through other forum
disscussions but I have not been able to find a solution.
I have a side by side layout where i drag elements from myTable into
dropZone. The workArea div has overflow: scroll enabled. My problem is
when the list becomes long and I have to scroll down to get to a
2006 Jan 21
1
Sortable Element with Partials?
Hi Everyone,
I posted this last month and unfortunately, I didn''t recieve any
replies. Maybe this time I''ll have better luck. I originally had my
sortable element list working properly like so:
<ul id="sortable_list">
<% @items.each do |item| %>
<li id="item_<%= item.id %>"><%= image_tag "dragme.gif"
2006 Jul 20
1
Scriptaculous + Sortable: onUpdate Not Firing
Hello all,
I''m using Scriptaculous 1.6.1 on a project I''m developing. My
generated HTML (generated by PHP) looks something like this:
<ul id="admin-list">
<li id="li-13">Singletary, Bob (President/CEO)</li>
<li id="li-12">Chatman, Jim (Vice President of Finance/CFO)</li>
...
</ul>
<script
2006 Jan 07
1
Sortable Element with Partials??
Hi Everyone,
I originally had my sortable element list working properly like so:
<ul id="sortable_list">
<% @items.each do |item| %>
<li id="item_<%= item.id %>"><%= image_tag "dragme.gif" %><span
id="title_<%= item.id %>" class="title"> <%= item.value %></span> <span
2006 Sep 29
0
sortable and Pulsate on Internet Explorer bug
Maybe someone can help me to make the Effect.Pulsate working on Internet
Explorer in this example?
<ul id="list">
<li>Element 1</li>
<li>Element 2</li>
</ul>
<script>
Sortable.create("list");
new Effect.Pulsate("list");
</script>
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message
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
2006 Jan 24
8
scriptaculous sortable
Hi,
maybe I am using this the wrong way but I have a list as follows
<ul id="secondlist">
<li>bla bla</li>
<li> bla bla </li>
</ul>
and then I add dynamically further <li> elements and create a Sortable
but the onUpdate only fires for <li> items that have not been created
via Javascript.
Any clues?
<script
2006 Jun 22
0
sortable list doesn''t work on production server
I have a sortable list in one of my views, using the sortable example
from the recipes book. The sorting works great on my mac. When I throw
it on the server for testing it doesn''t save the display order.
I cracked open the log file and see that it''s not even returning the
id''s like it should:
Parameters: {"action"=>"sort",
2006 Nov 24
1
sortable or drag/drop for tables
Is either sortable or drag and drop doable for table elements ?
I looked at the wiki and didn''t see anything. Noticed the demos and
such are done with <ul><li> ''s
I''m wondering about <td> ''s ?
TIA
Stuart
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
2006 Mar 01
9
sortable tree?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi *,
I am new to this list, so please excuse me if this has been covered
before (unfortunately the search function at
http://www.ruby-forum.com/forum/10 is disabled at the moment).
If yes, then a pointer to a solution would be great.
I want to create a sortable tree with scriptaculous Sortable. There are
several categories and subcatgories:
cat_a