problm with settimeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marybarkerharris
    New Member
    • Dec 2009
    • 4

    problm with settimeout

    I have created an online form for users of my website to complete and wish to limit the time allowed for completion. I think I may need to use "settimeout " but none of the examples I can find include replacing the page after the timeout limit with a "sorry you ran out of time" message

    Does anyone able to give me advice on how to do this?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I have created an online form for users of my website to complete and wish to limit the time allowed for completion.
    I’d consider that not user friendly, unless you have a good reason for it (e.g. online exam)

    Comment

    • marybarkerharris
      New Member
      • Dec 2009
      • 4

      #3
      Thats exactly what it is. An online skills assessment test. Therefore essential we limit time available for completion

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        do the time validation on the server (compare timestamp of initially sent page with timestamp of received form). however, you can run a JavaScript clock or counter to show the remaining time.

        Comment

        • marybarkerharris
          New Member
          • Dec 2009
          • 4

          #5
          Thanks loads for your help Dormilich. are you able to let me know how to do this? I am very new to web development

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            are you able to let me know how to do this?
            to do what exactly?
            _______________

            Comment

            • marybarkerharris
              New Member
              • Dec 2009
              • 4

              #7
              to do the time validation on the server (compare timestamp of initially sent page with timestamp of received form)

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                if it’s PHP I sure can think of something.

                Comment

                Working...