Code Monkey home page Code Monkey logo

jquery-idle-timeout's Introduction

jQuery Idle Timeout

See the original Mint.com example, or a demo using jQuery UI's dialog widget.

This script allows you to detect when a user becomes idle (detection provided by Paul Irish's idletimer plugin) and notify the user his/her session is about to expire. Similar to the technique seen on Mint.com. Polling requests are automatically sent to the server at a configurable interval, maintaining the users session while s/he is using your application for long periods of time.

Example

jquery-idle-timeout's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-idle-timeout's Issues

Bower support

Would be nice to have a bower.json file and support to add these through bower not just manually.

Possible bug with jquery 2.0.2?

Are there compatibility limitations for this script?
I receive the following error when utilizing the script verbatim with jquery.2.02

TypeError: owner is undefined
return owner.nodeType ?

in
jquery-2.0.2.js (line 3360, col 1)

3-19-2015 3-04-30 pm

Add documentation

It would be nice if you could create a nice documentation.
OK, as a developer I can look into your source on the demo pages, but still, it would be nice to have a bit more documentation / reference guide.

suspend when iframe is open?

Any recommendations on how to handle when the timer is running on a page and the user triggers an action that opens an iframe window? The idle warning always displays when the iframe is open because it is looking for "activity" on the parent page which never happens. Ideally I'd like to disable or suspend the timer on the parent page and have it run on the iframe window when the iframe is open.
Thanks.

How to resume timer on ajax requests

hello, I have implemented this plugin and it is working like but when I am requesting via ajax the timer is not resuming and continue to countdown the seconds because of idle session

I have further looked into stack overflow and tried couple of things as suggested but that too didn't worked for me.
1st I have tried the answer which I got here
https://stackoverflow.com/questions/35143230/jquery-ajax-aborted-in-laravel-5-2-using-jquery-idle-timeout

ie., either commenting out the ajax timeout or call it on ajax success but there I got timer appended into existing timer instead of resuming the exisitng timer and thus logging out after the completion of 1st timer.

https://stackoverflow.com/questions/31888343/reset-idletimeout-counter-between-ajax-post

2nd I tried to call it on ajaxSuccess function but that too gave me the same above mentioned problem

Now, I would be thankful If you help me out to solve this issue I want to resume the timer like it is resuming on click or reload of the page after every ajax call.

Plugin Conflicts with datatables

Hi, i have placed this plugin in my project and the datatables fail to fetch the data from the db. What could be the problem here.

private keepAlive function accessing tittle

The private keep alive function should access the document title through the document variable instead of the element passed in.

Any time the title of the document is changed after the timeout has been initialized a keep alive call will reset the title back to what it was at the time the timeout object was initialized.

control css?

I seem to be having trouble controlling the style without it taking over my whole site. I have default font size for my site fairly large, but that makes the timeout dialog unreadable. Can't seem to set css so that ONLY the dialog is affected. The only luck I've had is setting font size for the body tag, but like I said that makes the text for the rest of the site too small.

Counter In Title Tag

An option to have the title tag change with the countdown.

The use case is I am on another tab and I can see the title bar change and count down notifying me that I either need to keep my session open, or let it die.

Thanks,

Justin

Set ajax global attribute to false

In my application i have ajax setup to show loader and this is done globally. Issue is that when idle ping the server the loader is showing. My purpose is to set ajax global attribute to false or to be configurable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.