Oh... if you use 'onUpdate', then you must follow the rules for
Sortable.serialize (i.e. each element has an id that matches the pattern
\w+_\d+ (such as item_1, item_2, etc)).  This is because onUpdate uses
Sortable.serialize before and after the drag to see if the value
changed.  If you would rather not bother with all that, just do
'onChange' instead, which is called every time the order changes during
the dragging.

I ran into this same thing not too long ago.

Greg

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Louis Walch
> Sent: Monday, January 30, 2006 12:01 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: RE: [Rails-spinoffs] sortable list question
> 
> oh right, value... god i always do that.
> 
> but, its not even alerting 'hi' so its not getting to that point
even.....
> 
> its making the list sortable, but nothing happens after i drag around.
> 
> 
> 
> > Well, if they are hidden input fields, then I'm not sure you can use
> > innerHTML (all self-enclosed tags should have no innerHTML).  You
need
> > to set the value on them (ids[i].value = '' + i, instead of
> > ids[i].innerHTML = i).  Or by 'hidden fields', do you not mean
<input
> > type='hidden'... >?
> >
> > Greg
> > _______________________________________________
> > Rails-spinoffs mailing list
> > Rails-spinoffs@lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> >
> 
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to