Hello! I found an excellent javascript typing test here on Code Project (
Advanced Typing Test). I would like to include this in an ASP.NET 2.0 (VB.NET) application that I am developing(I am using Visual Web Developer 2010), but am having trouble in two areas:
The first is a bunch of errors that I get when I paste the javascript into my .aspx page. If I run this from an .html file, it runs perfectly. The errors only show up in the .aspx page. Below are a few error samples when the page runs from a website:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)Timestamp: Wed, 2 Feb 2011 20:32:47
UTCMessage: 'document.JobOp.given' is null or not an object
Line: 492Char: 2 Code: 0Message: Object required
Line: 402Char: 1 Code: 0Message: 'document.JobOp.start' is null or not an object
Line: 154Char: 2 Code: 0Message: 'document.JobOp.start' is null or not an object
Line: 154Char: 2 Code: 0
There were other errors that I was able to fix (minor ones like attributes not enclosed in quotation marks). However, the other issue is how to get the final typing speed back to the .aspx page (postback, perhaps?) so that it can be submitted to a database.
I must admit, I am totally unfamiliar with javascript.... If anyone could help with these issues, I would be entirely grateful.
I would post the javascript for the typing test, but, as it is located elsewhere on the site, I felt that unnecessary.
Thanks, in advance.