Force Page Load

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mugs321
    New Member
    • Sep 2006
    • 22

    Force Page Load

    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....
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    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

    Comment

    • Mugs321
      New Member
      • Sep 2006
      • 22

      #3
      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.

      Comment

      Working...