从浏览器后退按钮进行页面缓存 [英] Page Caching From Browser Back Button

查看:110
本文介绍了从浏览器后退按钮进行页面缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有另一个问题.我正在开发一个Web应用程序,学生将登录该Web应用程序并浏览几页以阅读课程内容.在其中的某些页面上,我们有多媒体测验,学生可以在其中播放视频剪辑,然后在观看剪辑后,他们必须回答有关视频的问题.在进入下一页之前,学生必须查看剪辑并回答其相关的测验问题.如果学生在正确回答多媒体问题之前单击页面上的下一页"按钮,他们将被重定向到另一页,告诉他们必须进入毫米测验才能进入下一页.现在,我们在页面上编程了一个后退"按钮,可将其带回到课程阅读中,但是,我们知道人们喜欢使用浏览器的后退按钮来返回上一页.我的问题是课程阅读是定时的.当学生阅读内容时,可以说他们在阅读前3页中累积了10分30秒,在第4页上花费了1分30秒.如果将他们重定向到您必须正确回答mm测验"页面,然后单击浏览器后退按钮以返回到课程阅读的第4页,则计时器不正确.它将恢复到10分钟30秒(我确定是由于缓存),而不是12分钟.当学生单击浏览器的后退按钮时,有什么方法可以停止该页面的缓存?

谢谢,

布拉德

解决方案

是否可以在同一页面上显示错误消息,从而在学生正确回答问题之前不启用前进按钮? blockquote>

Hello all,

I have another question. I am working on a web app that a student will log onto and go through several pages of reading the course work. On some of these pages, we have multimedia quizzes where the student will play a video clip and then after they viewed the clip they must answer a question regarding the video. The student must view the clip and answer its related quiz question before going onto the next page. If the student clicks on the "Next Page" button we have on the page before answering the multimedia question correctly, they get redirected to another page that tells them they must answer the mm quiz before moving onto the next page. Now we have a "Back" button that we programmed on the page to take them back to the course reading, however, we know that people like to use the browser back button to go back to previous page. My problem is that the course reading is timed. While the student reads the content lets say they have accumulated 10 minutes 30 seconds of reading the first 3 pages and have spent 1 minute and 30 seconds on the 4th page. If they get redirected to the "You must answer the mm quiz correctly" page and then click on the browser back button to go back to the 4th page of course reading then the timer is not correct. It will be back to 10 minutes 30 seconds (I am sure due to caching) instead of 12 minutes. Is there any way I can stop the caching of this page when the student clicks on the browser back button?

Thanks,

Brad

解决方案

Would it be an option to display the error message on the same page, and thus not enabling the forward button until the student anwsers the question correctly?


这篇关于从浏览器后退按钮进行页面缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆