Displaying 2 results from an estimated 2 matches for "track_all".
Did you mean:
trace_all
2006 Jun 07
2
Ajax: periodicaly_call_remote problem
Hello
I am using ''periodically_call_remote'' to get some stats from database
and display it every N seconds, it''s works fine, but when I rewriting
(by page.replace ...) content of the DIV which contains
''periodically_call_remote'' definition request are still executing...
How to fix this confuse?
Thanks in advance.
2006 Jun 10
0
Problem with ''periodically_call_remote''
...call_remote'', but I can''t STOP
it!
Simple example:
View:
<div id="view">
<%= link_to_remote ''Stop tracking'', :url => { :action => ''stop'' } %>
<%= periodically_call_remote :url => { :action =>
''track_all'' }, :update => ''tracking'' %>
<div id="tracking"></div>
</div>
Controller:
def track_something
# DATABASE ACCESS HERE
....
render :partial => ''track''
end
def stop
render :update do |page|
page.remove &...