Displaying 2 results from an estimated 2 matches for "track_something".
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''
...king'', :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 ''view''
end
end
When ''stop'' action executed, database access still work... It''s strange
isn''t it?
PS: I...