且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Javascript setTimeout和重定向-IE冻结

更新时间:2023-10-29 22:56:10

我遇到了相同类型的问题,因此我创建了一个不同的问题,因此我可以专注于自己认为是问题核心的问题. (当计算机处于锁定屏幕时,IE不会重新粉刷.)

I was running into the same type of issue, and I created a different question so I could focus in on what I perceived to be the heart of the issue. (IE not repainting while computer is in lock screen.)

无论如何,我最终找到了解决此问题的方法.您可以在此处看到 我的回答 .本质上,您可以通过在自动注销目标页面中放置一些JavaScript来定期更新页面内容来解决问题....这将迫使IE重新绘制页面.

Anyway, I finally figured out a way to resolve this. You can see my answer here. Essentially you can fix your issue by putting some JavaScript inside your auto-logout destination page to periodically update the page content.... and this will force IE to repaint the page.

这样,我可以在会话在其当前页面上到期之前立即执行所需的任何自动保存"逻辑,然后将其踢到自动注销"页面.

This way I can execute any Auto Saving logic I want right before their session expires on their current page, and then kick them to the Auto-Logout page.