This should work (haven't tested it):
:after_update_element =>
"function(element,value){" + remote_function(:url => { :action
=> :update_city_zips }, :with
=>"'selected_city_name='+element.value") + "}"
If it doesn't, drop by in #prototype on freenode.net (today!) so we
can have a look.
-Thomas
Am 06.04.2006 um 22:18 schrieb Alain Ravet:
Anybody?
How does one call a remote_function with after_update_element ?
Alain
It must be obvious by I can't find my way the new syntax.
With the "old" syntax (patch 3691), I had written code like this :
<%= text_field_with_auto_complete :city, :name, {},
:after_update_element => remote_function(
:url => { :action => :update_city_zips },
:with =>"'selected_city_name='+element.value")
%>
How should it be rewritten for the new syntax?
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
Thomas Fuchs
wollzelle
http://www.wollzelle.com
http://www.fluxiom.com :: online digital asset management
http://script.aculo.us :: Web 2.0 JavaScript
http://mir.aculo.us :: Where no web developer has gone before
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs