On Tue, Jun 23, 2009 at 12:52 PM, Valentino Lun<[email protected]> wrote: > > Thanks for your reply > > I think this is not work in my case > My page uses form_remote_tag to search the result, so it display the > result without reloading the whole page...The setTimeout function will > not reset the timer if I use form_remote_tag for searching... > > Any idea? > > Many thanks > Valenino >
You could have a timeout variable that you set to 15 minutes in the future When you update the results, you can also update the variable with a new timeout time. Run setTimeout (maybe 1 minute) to check if the time has exceeded the variable If it has, change the page, if not, reset the timeout to check again Andrew Timberlake http://ramblingsonrails.com http://MyMvelope.com - The SIMPLE way to manage your savings --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

