Re: [Rails-spinoffs] Sortable - can we make one or more elements in a list sticky?

2005-12-28 Thread Douglas Forrest
The "only" option in Sortable.create "Further restricts the selection of child elements to only encompass elements with the given CSS class (or, if you provide an array of strings, on any of the classes)". So just include all the class elements except those you want to be sticky in "only". W

Re: [Rails-spinoffs] Submiting list - preserving order

2005-12-19 Thread Douglas Forrest
1. use Sortable.serialize (be sure to include a "_" in your element ids) on the containers to get a delimited order sequence string or cycle through the elements in order yourself and create a delimited sequence string. Then pass the delimited sequence string in a posted form field or via get

Re: [Rails-spinoffs] update_element_function fail gracefully?

2005-12-07 Thread Douglas Forrest
this behavior would be a good feature for the update_element_function to perform? Tom On 12/6/05, Douglas Forrest <[EMAIL PROTECTED]> wrote: Bracket it with a try..catch block and leave the catch block empty... Tom Davies wrote: I am using the update_element_funct

Re: [Rails-spinoffs] update_element_function fail gracefully?

2005-12-06 Thread Douglas Forrest
Bracket it with a try..catch block and leave the catch block empty... Tom Davies wrote: I am using the update_element_function to update the text in some elements. This works fine, however, if I try to update an element that is not on the page anymore, it fails silently and no further javascri

Re: [Rails-spinoffs] Multi-level drag and drop in scriptaculous?

2005-12-05 Thread Douglas Forrest
Sorry about sending html -- here it is in plain text: Not exactly. With respect to that demo, imagine that: Items in list 2 could be sorted within list 2 but not dragged to list 1; List 1 items could only be dropped within list 1 or onto a list 2 item; List 1 items which were dropped on

Re: [Rails-spinoffs] Multi-level drag and drop in scriptaculous?

2005-12-05 Thread Douglas Forrest
e as the sortable lists demo? I encountered that I was not able to do it right until I used the latest version of the libraries (i.e., had to ditch the default rails ones) Victor On 12/5/05, Douglas Forrest <[EMAIL PROTECTED]> wrote: I am trying to create a screen like Google's

[Rails-spinoffs] Multi-level drag and drop in scriptaculous?

2005-12-04 Thread Douglas Forrest
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 (dr