ICEfaces
  1. ICEfaces
  2. ICE-9257

Client-side JavaScript API for user-inactivity detection

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.BETA, 4.0
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      ICEfaces 3.x
    • Assignee Priority:
      P2
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      A useful feature for many applications is to have an application perform an action in response to a prolonged period of user-inactivity in the browser. This may be to force the user to logout, to popup a warning dialog asking if the user requires assistance or more time to complete a transaction.

      This differs from server-side session expiry warnings in that it is based purely on the lack of client-side user activity (mouse moves and button presses, key presses, etc.).

      To support this feature, a new bridge API should be added to allow the configuration of a client inactivity timeout (via ice core:config). When set, a JavaScript callback can be received when the inactivity threshold expires. The application can then use the callback to perform whatever actions it requires based on the inactivity.

      By default, the bridge will not perform any action based on the user-activity timeout other than execute an registered callbacks (the application will have to register a callback in order for anything to occur based on the inactivity timeout).

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #35185 Mon May 20 15:58:50 MDT 2013 mircea.toma ICE-9257 Pass in the logger object into the warn method.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/user-inactivity.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #35184 Mon May 20 15:57:46 MDT 2013 mircea.toma ICE-9257 Execute active user callback only when it exists.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/user-inactivity.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #35183 Mon May 20 15:56:05 MDT 2013 mircea.toma ICE-9257 Modified API and impementation to account for the active user callback.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/user-inactivity.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #34996 Mon May 13 15:04:25 MDT 2013 mircea.toma ICE-9257 Implemented user-inactivity detection mechanism.
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/application.js

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: