thanks greg, i changed it to onChange... but its still not doing
anythingggg!! AHHH...

i even pared it down to only the alert, and nothing. the list IS
draggable, so the JS is running. and i am doing it in firefox to watch for
JS errors but nothing.
here is my new code:


                <script type="text/javascript" language="javascript" 
charset="utf-8">
                        Sortable.create('list_filmLnks', {
                                onChange: function() {
                                        alert('hi');
                                }
                        });
                </script>

> 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: [email protected]
>> 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
>> > [email protected]
>> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>> >
>>
>> _______________________________________________
>> Rails-spinoffs mailing list
>> [email protected]
>> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to