Forum: Ruby on Rails Refresh tabs for every 5 minutes

Posted by Maheswari Bala (mahe2k)
on 2012-12-31 18:17
I have a four tabs along with the menus in the left hand side. on
clicking each tab will populate corresponding data in the table.I need
to write a ajax method to refresh each tabs for every 5 minutes. Can
someone help with an example.
Posted by Robert Walker (robert4723)
on 2012-12-31 23:05
Maheswari Bala wrote in post #1090711:
> I have a four tabs along with the menus in the left hand side. on
> clicking each tab will populate corresponding data in the table.I need
> to write a ajax method to refresh each tabs for every 5 minutes. Can
> someone help with an example.

http://www.w3schools.com/jsref/met_win_setinterval.asp

I am assuming you know how to make a AJAX call. The above will explain 
how to set an interval to call your function periodically.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.