Hi everyone,
I am really confused about this.. On my Sortable.create, if I do
onChange then my alert gets executed, but as I have it right now,
nothing happens when I sort through my items. The alert never gets
executed.
-patrick
<% form_tag dropdown_path(:id => 1), :method => :put do %>
<% @dropdowns.each do |d| %>
<div class="dropdown_container">
<%= d.name %>
<%- if d.webpages.length > 1 -%>
<ul id="sortable_<%= d.id %>">
<%= output_dropdowns(d) -%>
</ul>
<%- end %>
</div>
<%- if d.webpages.length > 1 -%>
<%= javascript_tag "Sortable.create('sortable_#{d.id}',
{ onUpdate: function() { alert('hi'); }});" %>
<%= hidden_field_tag "dropdown_#{d.id}" %>
<%- end -%>
<%- end -%>
<%= submit_tag "Update" %>
<% end %>
<%= link_to 'New dropdown', new_dropdown_path %>
<div class="clearer"></div>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---