-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iframe activity #5
Comments
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. |
I was hoping to handle it all in the parent. Is that possible? From: JillElaine [mailto:notifications@github.com] 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. — |
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/ |
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. |
Added iframe activity detection. Closes issue #5. |
works great!! Thanks :) |
Is there anyway to account for activity in an iframe in the same domain? We use it to display older aspx/asp content in our MVC site.
The text was updated successfully, but these errors were encountered: