Skip to content
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

same origin iframe #36

Open
lordcoste opened this issue Jun 20, 2019 · 1 comment
Open

same origin iframe #36

lordcoste opened this issue Jun 20, 2019 · 1 comment

Comments

@lordcoste
Copy link

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

@henriqueboaventura
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants