Plugins - on_idle

StarAdd to favorites

OnIdle

This is a simple plugin that adds an "on idle" method available to use in views. It takes three arguments:

    def on_idle(timeout, options, wakeoptions)

    <%= on_idle(600, {:url => { :action => 'notify_idle' }},
                     {:url => { :action => 'notify_wake' }}) %>

timeout: the number of seconds before the user is considered ‘timed out’.

options: the action to perform when the user goes idle.

wakeoptions: what to do when the user ‘wakes up’.

David N. Welton

http://journal.dedasys.com

http://svn.dedasys.com/public/on_idle/

Rails' (MIT)

  • Currently 4.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

View Extensions

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?