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

Reply via email to