Comments (6)
It should work. The script does work across multiple browser windows within the same domain. If it is not working, check that you've loaded the loaded the idleTimeout script for your older content.
from jquery-idletimeout.
I was hoping to handle it all in the parent. Is that possible?
From: JillElaine [mailto:[email protected]]
Sent: Tuesday, March 25, 2014 9:22 AM
To: JillElaine/jquery-idleTimeout
Cc: Roy Harding
Subject: Re: [jquery-idleTimeout] iframe activity (#5)
It should work. The script does work across multiple browser windows within the same domain. If it is not working, check that you've loaded the loaded the idleTimeout script for your older content.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-38521566.
from jquery-idletimeout.
In the parent, after you open the iframe, use jQuery to add the necessary script to the iframe.
You'll need to add the 4 dependent script libraries to the iframe, jquery.js, jquery-ui.js, store.js & jquery-idleTimeout.js, and then call the idleTimer function in a 'document ready' function. Use the index.html as an example. https://github.com/JillElaine/jquery-idleTimeout/blob/master/index.html
The syntax is tricky. Please see this stackoverflow discussion http://stackoverflow.com/questions/18369410/how-to-add-javascript-code-into-existing-iframe-using-jquery and this jsfiddle: http://jsfiddle.net/WsCxj/
from jquery-idletimeout.
I've added detection of activity within iframes from the same domain to jquery-idleTimeout-iframe.js.
You can see a demonstration of this script here: http://jillelaine.github.io/jquery-idleTimeout/iframe-demo.html
I appreciate feedback. Thank you.
from jquery-idletimeout.
Added iframe activity detection. Closes issue #5.
from jquery-idletimeout.
works great!! Thanks :)
from jquery-idletimeout.
Related Issues (20)
- Is there a way to change the timeout duration at runtime? HOT 5
- Dependency on jQuery UI for pop up. HOT 1
- Session time out counter show NAN HOT 15
- iframe inactivity detection bug HOT 2
- Accessing the $.fn.idleTimeout() after it was initialized HOT 1
- customCallback repeating call if redirectUrl: false HOT 2
- IE recursive loop crash. HOT 7
- Does not function if the page is having frameset HOT 2
- Cannot find any error handling callback HOT 2
- Session lost when there is a pending AJAX request HOT 7
- Unable to change dialogue on buttons, HOT 19
- Configuration issue - activityEvents override without mousemove HOT 7
- Error message only on IE 11 on Windows 2012 R2 - Solved HOT 12
- Releasing jquery-idleTimeout under MIT license HOT 7
- Logged out of iframes, not main page HOT 4
- IE 11 Tabs or windows not communicating when over 2 tabs. HOT 2
- IE-11 windows 10 multiple logout calls HOT 1
- How much of jquery-ui do you need to bundle? HOT 3
- Uncaught TypeError: $(...).idleTimeout is not a function HOT 1
- store.js HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-idletimeout.