What surprises me the most is that it submits the form (it sends a
POST request to the right place), but it doesn't submit form data. Why
is that?

I hope someone can help, I'm stuck.

On 1 dec, 15:25, jhaagmans <[email protected]> wrote:
> I may have been unclear about this: it does make a POST request to the
> action URL, but the POST data is empty. This results, of course, in
> the controller failing to process the data.
>
> On 1 dec, 13:32, jhaagmans <[email protected]> wrote:
>
> > 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