Displaying 20 results from an estimated 7000 matches similar to: "Sortable Tree Modification"
2006 Jun 21
7
sortable tree problem
Hello,
I''m having a problem when I set the tree option to true on Sortable.
If I set the option to false my remote call works fine, but once I set
it to true, I get some weird log errors from Webrick...
undefined method `update'' for "11":String
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:214:in
`build_deep_hash''
2006 Feb 17
29
Sortable Tree Addition [PATCH]
Hello, here is the initial patch for support for sortable trees.
Please as many people download this code and test with your lists and
feel free to add more list tests.
Files modified were dragdrop.js and prototype.js.
Some new options have been added. ''treeTag'' specifies the tag used to
contain children elements. ''tree'' must be set to true for 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 =
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
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
2005 Aug 03
0
Scriptaculous: Sortable child index
Hi all,
I have an unordered-list, made Sortable using dragdrop.js. When the
onUpdate() event fires, is there a way to get the (new) index of the child
list-item that was just moved? Or would I have to compare the results of
serialize() before and after the move?
Thanks,
Best Regards,
Ed C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 06
0
script.aculo.us V1.6.1
V1.6.1 (2006-04-06): Sortable Trees, Prototype 1.5.0_rc0 (fixes IE
mem leaks)!
New features in V1.6.1 and V1.6.0:
* Update to Prototype 1.5.0_rc0
* Sortable trees [thx Sammi Williams, sammi-EeRYXuc1dym5PgFUrJwY1aU/zSkkHjvu@public.gmane.org]
See the functional test (test/functional/sortable_tree_test.html)
and the CHANGELOG for more information!
* Add Draggable object as third parameter
2005 Nov 18
0
Passing "accept" option through a Sortable
Hi All,
I''m attempting to tweak Scriptaculous 1.5R4 to provide the ability to
pass the "accept" option through the Sortable.create(...) call to the
enclosed Droppable(s). I''m far from 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
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 Apr 14
1
Problems using Sortable with an onUpdate callback
Hi all:
I''m using sortable (very cool stuff!) on a series of divs with an
onUpdate callback. Everything appears to work alright until I try to
pass a parameter to my callback function like this:
Sortable.create( ''page_33'',
{
tag: ''div'',
onUpdate: updateOrder(''page_33'')
}
);
When I pass that parameter to the
2005 Sep 29
0
scriptaculous: Filed Bug #2339: XHTML comments can cause Firefox to throw an error on Sortable.create()
The Wiki page "TheWishList" indicates that bugs should be reported
into Trac and to this list.
The bug report is here:
http://dev.rubyonrails.org/ticket/2339
Description:
If there is an XHTML comment in a document at the same level as the
elements that are being activated by the Sortable, Firefox 1.0.6 will
throw this error:
Error: item.id has no properties
Source File:
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
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.
2006 Feb 14
5
problem with sortable lists and IE
* I sent this message previously from the wrong address so it didn''t go
through so, I apologize in advance if a duplicate shows up *
Hello, I am very new to script.aculo.us and prototype but was trying to
implement some of the cool ajax functionality with Webwork.
I have been having a little trouble with the sortable element demo. I have
the following code below:
<html>
2006 Apr 01
0
Sortable trees
I''ve added the sortable tree patch from Sammi to the script.aculo.us
trunk-- please help testing it!
Besides testing the sortable trees itself, reports about any side
effects
on draggables or standard sortables are more than welcome.
Kudos to Sammi for the elaborate patch and the great new functionality
it brings to script.aculo.us!
-Thomas
2005 Aug 08
0
Sortable or dragdrop to move items from one collection to another?
I need to present the user with a collection of players and one to many
teams. The user can drag a player to a team or from one team to another.
I started out using plain drag-drop, but was having trouble updating both
the from list and the to list. E.g. if a player goes from team1 to team2 I
need to update both of those divs. I can do the team2 div easy enough, but
the player record still
2006 Jun 16
1
sortable acts_as_tree with heirarchy
I''ve been stumbling on the tut at oriontransfer
(http://wiki.oriontransfer.co.nz/main/show/SortableTree)
I''ve got it working in a one dimensional list and I''ve got the drag and
drop working on children, but as can''t get it to save the tree.
Here''s my view:
<h2>Menu Prototype 2</h2>
<%= flash[:notice] %>
<ul
2006 Apr 04
1
Problems with Sortable and window.name (script.aclo.us)
The problem that I have run into is with a legacy site that I am
upgrading. The site is laid out with a two frames, a nav frame on the
left, and the main content frame on the right. I have four different
sortable lists all working nicely in the main content frame, but
whenever an item is moved in any of the sortable lists, the window name
of the content frame is changed from
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