Kad Kerforn
2007-May-24 12:03 UTC
can an hidden_field changed be detected by observe_form ?
in a view, I am changing programmatically an hidden field
''category_id''
(simulating a click)
<li>
<%= link_to_function("Baby-sitting", nil, :class =>
"enfants") do |page|
page << "$(''category_id'').value =
''1''"
end %>
</li>
......
<%= hidden_field_tag :category_id, @category_id -%>
I try to submit the form whenever this field (or other standard input
field...) is changed
<%= observe_form(''prop_search_form'',
:loading => "Element.show(''search_spinner'');
Form.disable(''prop_search_form'');",
:complete => "Element.hide(''search_spinner'');
Form.enable(''prop_search_form'');",
:update => {}, :url => { :controller => ''proposal'',
:action => ''list'' })
%>
any field is correctly detected but not this hidden field... is it wrong
?
I also tried to put this value in a readonly text field... same
problem... change event is not detected
thanks for your help
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---