And maybe one more.. Again, I know you dislike javascript, but.. :)
This isn't exactly generic - I'm pulling it straight out of something
I'm doing right now. Why not show a spinner (and disable the submit
button?) when they press submit and hide the spinner when that's done ?
It's all about the feedback, right? :)
<%= image_tag("spinner.gif",
:align => "absmiddle",
:border => 0,
:id => "spinner",
:style =>"display: none;" ) %>
</center>
<%= observe_field :date, # The field to observe
:with => :date, # The input to validate
#:on => "onselect", # What action to check. With JS updates, use
frequency.
:frequency => 1, # The frequency in seconds to watch for changes
:url => {:action => 'filter_widget', :controller => 'dictated_exams',
:method => :post },
# The action to call when changes occur
:update => :filter_counts, # Name of the <div> to update
:before => "Element.show('spinner')",
:success => "Element.hide('spinner')"
%>
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---