Hi,

I'm trying to submit a form onDrop using Scriptaculous. I have a small
form with a multi-select box. My form is just a standard HTML form,
but it doesn't have a submit button.

<form action="/projects/multi_drop" id="multi_drop_form_<%=
attribute.id.to_s %>" method="post">
  ...
  select box
  ...
</form>

My droppable element is created like this:

<%= drop_receiving_element 'multi_drop_'+attribute.id.to_s, :accept =>
'group', :onDrop => "function(element) { $('multi_drop_form_#
{attribute.id.to_s}').request({parameters:{id:element}}); } " %>

As you can see, what I'm trying to do is submit a form and send the id
of the dragged element along with it as the id. But when I look in
Firebug, it doesn't POST at all! No id, but also no values from the
select box.

What am I doing wrong? Ondrop forms aren't really documented anywhere,
but I thought I figured it out!

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.


Reply via email to