Oggle this pseudo-Rails:
<div id='self' >
<%= periodically_call_remote(:update => 'self',
:action => 'yo' ... ) %>
update :text => format(new_data)
update :text => periodically_call_remote(:update => 'self',
:action => 'yo' ... )
The intent is to update a div until new data appears, then display it once and stop updating the div.
I haven't typed this in yet because I suspect it won't work.
How to fix this? How to keep updating until data arrive, then stop?