jquery.idle icon indicating copy to clipboard operation
jquery.idle copied to clipboard

same origin iframe

Open lordcoste opened this issue 5 years ago • 1 comments

Hi, I know that is not possibile to detect activity on cross-origin iframe, but what about same-origin iframe? I need to detect activity while scrolling a pdf opened in a same-origin iframe with pdf.js.

Is that possible?

Could something like https://github.com/JillElaine/jquery-idleTimeout/blob/master/jquery-idleTimeout-iframes.js be used?

Best regards

lordcoste avatar Jun 20 '19 13:06 lordcoste

Hey, so, in this particular case, it uses some kind of session to handle the activity between the origin and the iFrame, it really works, but needs a lot of dependencies that will require deep changes on the plugin. Also, since you are trying to handle de activity on a PDF using pdf.js, I'm not sure that this update would help. Have you tried use the JillElainer plugin successfully?

henriqueboaventura avatar Jun 25 '19 17:06 henriqueboaventura