Hello all,
I''m using the FormOptionsHelper#select and I have the following in my
rhtml
:
<%= select("project", "ProjectID", @projects,
{:include_blank=>true},
{:onclick=>"javascript:document.model_list_form.submit();"} ) %>
When I "click" the drop-down to open the list, the form posts anyway.
I
guess I''m looking for the "onChange" type event.
Where can I find a reference for the javascript events on the DOM list ?
Thanks.
Peter Fitzgibbons
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
On 10/10/05, Peter Fitzgibbons <peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, > > I''m using the FormOptionsHelper#select and I have the following in my rhtml > : > > <%= select("project", "ProjectID", @projects, {:include_blank=>true}, > {:onclick=>"javascript:document.model_list_form.submit();"} ) %> > > When I "click" the drop-down to open the list, the form posts anyway. I > guess I''m looking for the "onChange" type event. >Stop guessing and try onChange :].