Hello,
I'm developing a web application intended to test students on several
subjects. This tests and their questions are stored properly on a database.
I need to have a time limit either for each question or for the entire test.
I have found some javascript scripts that can help in this matter.
But I need help in implementing a robust time control in the web
application: avoiding users to close the Internet Explorer window and
starting all over, in case they do this, to start on the question they were
before and not losing track of the time (if they closed it on purpose for
five minutes, they should lose this time of their total available), something
like this.
Any ideas of the things I should consider while implementing this system?
Any examples you know available on the web, to analize the functionality of
the application.
Thanks 6 1084
> Any ideas of the things I should consider while implementing this system?
Just an idea, but when the page first loads with the question, grab the
server time and set that as some sort of session variable. Then check
against that on submission to determine the time left.
If you want to update the time for the end-user, perhaps have an iframe with
an aspx page that reloads itself every 15 seconds or so checking against the
stored session variable and counting down from that.
-Darrel www.brainbench.com provides timed evaluation exams. You can see the current
elapsed time count down as you read the page. The problem with a client side
timer is that it is dependent on the client's clock which can be slow or
even manipulated. For example, a student needing some time for a question
could roll the clock back a minute or two, if they have rights to modify the
desktop settings. Therefore you will need to also track the time started and
completed on the server side as well.
"Gabriel Giraldo" <Ga************@discussions.microsoft.com> wrote in
message news:AD**********************************@microsof t.com... Hello,
I'm developing a web application intended to test students on several subjects. This tests and their questions are stored properly on a
database. I need to have a time limit either for each question or for the entire
test. I have found some javascript scripts that can help in this matter.
But I need help in implementing a robust time control in the web application: avoiding users to close the Internet Explorer window and starting all over, in case they do this, to start on the question they
were before and not losing track of the time (if they closed it on purpose for five minutes, they should lose this time of their total available),
something like this.
Any ideas of the things I should consider while implementing this system? Any examples you know available on the web, to analize the functionality
of the application.
Thanks
Check out this article - it explains all of your options for managing state: http://msdn.microsoft.com/library/de...forWC-CH05.asp
One option that would work for your scenario (reviving a session after a
browser restart) is to store state in a database (SQL Server), or in
cookies.
-HTH
"Gabriel Giraldo" <Ga************@discussions.microsoft.com> wrote in
message news:AD**********************************@microsof t.com... Hello,
I'm developing a web application intended to test students on several subjects. This tests and their questions are stored properly on a database.
I need to have a time limit either for each question or for the entire test. I have found some javascript scripts that can help in this matter.
But I need help in implementing a robust time control in the web application: avoiding users to close the Internet Explorer window and starting all over, in case they do this, to start on the question they were before and not losing track of the time (if they closed it on purpose for five minutes, they should lose this time of their total available), something like this.
Any ideas of the things I should consider while implementing this system? Any examples you know available on the web, to analize the functionality of the application.
Thanks
Thanks a lot. I will consider your idea on my solution
"darrel" wrote: Any ideas of the things I should consider while implementing this system?
Just an idea, but when the page first loads with the question, grab the server time and set that as some sort of session variable. Then check against that on submission to determine the time left.
If you want to update the time for the end-user, perhaps have an iframe with an aspx page that reloads itself every 15 seconds or so checking against the stored session variable and counting down from that.
-Darrel
Thanks a lot.
"bradley" wrote: www.brainbench.com provides timed evaluation exams. You can see the current elapsed time count down as you read the page. The problem with a client side timer is that it is dependent on the client's clock which can be slow or even manipulated. For example, a student needing some time for a question could roll the clock back a minute or two, if they have rights to modify the desktop settings. Therefore you will need to also track the time started and completed on the server side as well.
"Gabriel Giraldo" <Ga************@discussions.microsoft.com> wrote in message news:AD**********************************@microsof t.com... Hello,
I'm developing a web application intended to test students on several subjects. This tests and their questions are stored properly on a database. I need to have a time limit either for each question or for the entire
test. I have found some javascript scripts that can help in this matter.
But I need help in implementing a robust time control in the web application: avoiding users to close the Internet Explorer window and starting all over, in case they do this, to start on the question they were before and not losing track of the time (if they closed it on purpose for five minutes, they should lose this time of their total available), something like this.
Any ideas of the things I should consider while implementing this system? Any examples you know available on the web, to analize the functionality of the application.
Thanks
Thanks for the MS Link.
"Jeffrey Todd" wrote: Check out this article - it explains all of your options for managing state: http://msdn.microsoft.com/library/de...forWC-CH05.asp
One option that would work for your scenario (reviving a session after a browser restart) is to store state in a database (SQL Server), or in cookies.
-HTH
"Gabriel Giraldo" <Ga************@discussions.microsoft.com> wrote in message news:AD**********************************@microsof t.com... Hello,
I'm developing a web application intended to test students on several subjects. This tests and their questions are stored properly on a database.
I need to have a time limit either for each question or for the entire test. I have found some javascript scripts that can help in this matter.
But I need help in implementing a robust time control in the web application: avoiding users to close the Internet Explorer window and starting all over, in case they do this, to start on the question they were before and not losing track of the time (if they closed it on purpose for five minutes, they should lose this time of their total available), something like this.
Any ideas of the things I should consider while implementing this system? Any examples you know available on the web, to analize the functionality of the application.
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ilias Lazaridis |
last post by:
"
A cooperation between Sun Microsystems and IBM&Co. in conjunction with
liberal & high evolutive communities would result in an nearly
unbeatable programming platform.
My evaluation has shown:...
|
by: Jeffrey Ganping Chen |
last post by:
I'm trying to build a generic runtime C# expression evaluation engine to
allow the user to evaluate any C# code blocks at runtime within the
application's context. For example,
obj4.p4 =...
|
by: dragoncoder |
last post by:
Consider the following code.
#include <stdio.h>
int main()
{
int i =1;
printf("%d ,%d ,%d\n",i,++i,i++);
return 0;
}
|
by: SL33PY |
last post by:
Hi again,
I've been coding in vb .Net on my most recent project and during a debug
session I noticed that VB .Net hasn't got lazy evaluation... WHY?! I love
lazy evaluation and actually count on...
|
by: berns |
last post by:
Hi All,
A coworker and I have been debating the 'correct' expectation of
evaluation for the phrase a = b = c. Two different versions of GCC
ended up compiling this as b = c; a = b and the other...
|
by: webmaster |
last post by:
TreeStages would like to announce the first evaluation release of
XEntrant XML Editor 0.1, which is available for download from our
website:
http://www.treestages.com
XEntrant is an XML Tree...
|
by: Rasjid |
last post by:
Hello,
I have just joined and this is my first post.
I have never been able to resolve the issue of order of evaluation in
C/C++ and the related issue of precedence of operators, use of...
|
by: Boltar |
last post by:
Why does C do lazy evaluation for logical boolean operations but not
bitwise ones?
Ie: the following program prints "1 2" , not "1 1" under gcc
main()
{
int a = 1;
int b = 1;
0 && ++a;
|
by: johnguilbert |
last post by:
Hi,
I have developed an application that I want to make an Evaluation Copy
for 1 week. In the past I have used one of the following techniques
with each having a drawback:
1. Write to...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |