Hi all, In Scriptaculous for, say, the following tree:
ac_page_content_1 ac_page_content_2 -> ac_page_content3 Once serialised and posted to the server (PHP) the $_POST array looks like this: Array ( [0] => ac_page_content_1 [1] => Array ( [0] => ac_page_content_3 ) ) This means that I have no way of knowing what the parent of ac_page_content_3 is. The work-around I found was to change Sortable._constructIndex to; if (node.id) index = '[' + node.id + '|' + node.position + ']' + index; So the resulting array is: Array ( [ac_page_content_1|0] => ac_page_content_1 [ac_page_content_2|1] => Array ( [[ac_page_content_3|0] => ac_page_content_3 ) ) So at least I can tell from the key what the parent is. Was wondering is anyone else had run into this, and what solutions you had found? Cheers, Leon _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs