Current location: Hot Scripts Forums » Programming Languages » PHP » countdown timer for a test. 30mins.


countdown timer for a test. 30mins.

Reply
  #1 (permalink)  
Old 07-25-07, 02:11 AM
audi audi is offline
New Member
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy countdown timer for a test. 30mins.

Hi guys.. I need help here.
Anyone knows how to do a countdown timer that will only lasts for 30mins for a test? Like when I click a 'start test' button, the timer will operate by itself and when it hits 30mins, the test session will end by itself and the students will just have to press on a submit button for their scores to be sent to their email?

thx!
newbie..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-25-07, 05:33 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
If you were using a form to present the test which comprised of the questions
and input fields to enter the answers and a submit button to submit the test
when completed, then submitting the form after 30 minutes if the student
hasn't completed the test and submitted it themselves can be accomplished
using a timer written in Javascript. The Javascript timer can be programmed to
submit the form after 30 minutes has expired.

If you would like some help on this then let me know and I will be glad to help
you implement this.
__________________
Jerry Broughton
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-25-07, 05:44 AM
darkerstar's Avatar
darkerstar darkerstar is offline
Newbie Coder
 
Join Date: Apr 2007
Location: London
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
You can also track the time your vistor taken on a particular page by using sessions. This will ensure if your visitor has turned javascript off, you can still validate their time taken.
__________________
Read Tiaon Lab blog
PHP + Delphi programming
http://www.tiaon.com/wordpress/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 07-25-07, 02:21 PM
audi audi is offline
New Member
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by job0107 View Post
If you were using a form to present the test which comprised of the questions
and input fields to enter the answers and a submit button to submit the test
when completed, then submitting the form after 30 minutes if the student
hasn't completed the test and submitted it themselves can be accomplished
using a timer written in Javascript. The Javascript timer can be programmed to
submit the form after 30 minutes has expired.

If you would like some help on this then let me know and I will be glad to help
you implement this.
Thx.. I need to do it in dreamweaver / php. Is Javascript allowed in it? Also, my MYSQL is having some type or error and I can't get it connected to my dreamweaver.. It's getting from bad to worse

"MySQL said:

#1045 - Access denied for user 'pma'@'localhost' (using password: NO) " - any ideas on how to fix it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 07-25-07, 05:13 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
This may help. I found these threads about error #1045
These deal with new installations and upgrades.
http://forums.macosxhints.com/archiv...p/t-29661.html
http://bugs.mysql.com/bug.php?id=6891
http://www.webyog.com/faq/23_18_en.html

And this one deals with permissions.
http://lists.mysql.com/mysql/198679

If you do a search for "mysql error #1045" you will find many more
posts from people having the same problem. Most of them have to do
with incorrect or missing password.
__________________
Jerry Broughton
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 07-26-07, 04:22 AM
audi audi is offline
New Member
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
arr... thx a bunch!
gonna try it out now.. =D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Self restarting countdown timer wektis Script Requests 0 10-27-06 07:31 PM
Countdown Timer Makien Script Requests 2 10-24-05 02:53 PM
Countdown Timer Makien JavaScript 2 10-06-05 05:49 PM
auction countdown timer like in ebay edwient PHP 2 05-12-05 02:19 AM
countdown timer misterman JavaScript 1 03-22-05 02:35 PM


All times are GMT -5. The time now is 01:13 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.