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?
If I have this:
/* JavaScript code */
function check(request, object) {
if (request.responseText == ‘abort’) {
// code for stop periodically update
}
}