Hello,
I am making an application in which I have a div where a new news is flashed
after every 5 second or so automatically. By automatically, I mean user does
not send any request to server by clicking on anything. The approach I think
which might work is - for news div, I call a javascript function on onload
event function of the div, which after every 5 second sends an ajax request
to server and update that div with a new content. However, as I understand
that this thing needs to be implemented as a separate thread so that rest of
the components on the webpage remains interactable. Is this the right
approach to solve this or is there a better way to do it?

-- 
Thanks,
Jaikishan

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to