Ilyas wrote:> I need make progress bar with following function:
>
> # Ruby on Rails code
> <%= periodically_call_remote(:update =>
''progress-bar'', :url => {
> :action => :progress },
> :frequency => 0.1 , :complete => "check(request)") %>
>
>
> How I can stop it?
you can add a :condition option to the periodically_call_remote, making
the method depend on the checkbox''s value. when checkbox is checked/(or
unchecked), the method stop to call.
--
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
-~----------~----~----~----~------~----~------~--~---