By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

Force Page Load

P: 22
Hey all,
I'm developing an online testing system. If there are multiple tests, there are admin-defined breaks between each test.

I've used a modal window (all users are using IE, 100% guaranteed) for the countdown which is launched in the main window's onLoad.

The problem is that if the user is quick enough they can prevent the display of the modal window by pressing Esc and stopping the main window from loading (everything happens too fast to stop the page by using the 'Stop' button). If this happens, they could take an unlimited break.

I can handle the Esc key but it does me no good if the page hasn't loaded yet. Is there any way to force a page to load? I'm guessing not....
Oct 30 '07 #1
Share this Question
Share on Google+
2 Replies


gits
Expert Mod 5K+
P: 5,390
hi ...

i think you are right ... we cannot force a page-load that way ... but you may start a serverside session and check the time there. if it happens that the time would be too long ... then you know that the user has tricked your test ...

another option would be to use only one page ... you may use different div-containers and set the style of them to hidden until they are needed ... so you could avoid this problem ...

kind regards
Oct 30 '07 #2

P: 22
Thx gits,
I already had a session variable with the time at which the break expires. Now, as you suggested, if break dialog loads and is any more than 10 seconds after the expiry, the system boots them out with a nice "Tampered Break" message.
Nov 22 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.