Your <li> elements need to have proper ids:
<li id="item_1">test 1</li>
<li id="item_2">test 2</li>
Best,
Thomas
Am 12.06.2007 um 02:46 schrieb Caine:
>
> I''m using Scriptaculous 1.7.3_beta3 (for Prototype 1.5.1 support),
and
> it appears the Sortable ''onUpdate'' callback is broken.
>
> Here is a very simple HTML page with the JavaScript that reproduces
> the problem:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
> <html>
> <head>
> <title>sortable.html</title>
>
> <!--<link rel="stylesheet" type="text/css"
href="./styles.css">-->
> <script type="text/javascript"
src="/javascript/prototype/
> prototype.js"></script>
> <script type="text/javascript"
src="/javascript/scriptaculous/
> scriptaculous.js"></script>
> </head>
>
> <body>
> <ul id="sort">
> <li>test 1</li>
> <li>test 2</li>
> </ul>
> <script type="text/javascript">
> Sortable.create(''sort'', { tag: ''li'',
onUpdate: function()
> {alert('''');} });
> </script>
> </body>
> </html>
>
> When the ''onUpdate'' option is changed to
''onChange'', it fires
> correctly. So onUpdate isn''t being called. Is this a known bug?
>
> Anyone else seen this?
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---