rails select loading oncomplete complete

select(“main_filter”, nil, Tag.find_ordered_parents.select{|t| t.products.size > 0}.map{|t| [t.name, t.id]}, { :include_blank => blank_text, :selected => @old_global_filter },
{
:o nchange => remote_function(:loading => “new Effect.Fade($(‘main_filter_’));”, :url => {:action => :change_global_filter}, :with => “‘id=’ + $(‘main_filter_’).value”, :success => “window.location.reload();”),
})

ref: http://apidock.com/rails/ActionView/Helpers/PrototypeHelper/link_to_remote

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>