Git Product home page Git Product logo

Comments (6)

JillElaine avatar JillElaine commented on August 20, 2024

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.

rharding98 avatar rharding98 commented on August 20, 2024

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.

JillElaine avatar JillElaine commented on August 20, 2024

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.

JillElaine avatar JillElaine commented on August 20, 2024

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.

JillElaine avatar JillElaine commented on August 20, 2024

Added iframe activity detection. Closes issue #5.

from jquery-idletimeout.

rharding98 avatar rharding98 commented on August 20, 2024

works great!! Thanks :)

from jquery-idletimeout.

Related Issues (20)

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.