Page 1 of 1

Help me test this JavaScript application

Posted: Thu Dec 28, 2006 3:17 pm
by Ambush Commander
Here's the application: http://www.thewritingpot.com/projectilelab/

We are going to be deploying it on an internal network that consists of mostly Macs (older versions), so testing in Safari and IE on Macintosh would be extremely good. Testing from older hardware is also welcome. I've already done some rudimentary tests on Windows XP with Opera, Firefox and IE 6+7.

To test, you will want to scroll through all the questions, guess some answers, watch the animation, etc. If you'd like to figure out the correct answers, do: javascript:alert($('answer').value=question.getAnswer);

It's pure JavaScript, since we won't have a webserver available.

Posted: Sat Jan 06, 2007 4:28 am
by anjanesh
One suggestion though: allow users to change measuring unit.
Excellent graph.
Why not flash ? Wouldn't it look nicer ?

Posted: Sat Jan 06, 2007 5:07 am
by Kieran Huggins
you need to stop the timer after the projectile is finished

add a while(dots[cur]){} around your projectile code.. or similar

Posted: Sat Jan 06, 2007 11:46 am
by Ambush Commander
Why not flash ? Wouldn't it look nicer?
I don't know how to do flash... :oops:
One suggestion though: allow users to change measuring unit.
I don't understand: how would that help them out? I can understand allowing them to change scaling, but changing units across the board seems fairly pointless.
you need to stop the timer after the projectile is finished

add a while(dots[cur]){} around your projectile code.. or similar
Doesn't the clearInterval() do that? Or am I missing something?

Posted: Sat Jan 06, 2007 12:04 pm
by anjanesh
Ambush Commander wrote:I don't understand: how would that help them out? I can understand allowing them to change scaling, but changing units across the board seems fairly pointless.
Since you got meters, its fine I guess. But if its km then a switch to mile and vice-versa.
Or maybe even in feet ?

Posted: Sat Jan 06, 2007 4:33 pm
by Kieran Huggins
Ambush Commander wrote:Doesn't the clearInterval() do that? Or am I missing something?
It does, but you must not be applying it correctly because it keeps firing and erroring after the projectile stops.

Posted: Thu Jan 11, 2007 6:07 pm
by Ambush Commander
It does, but you must not be applying it correctly because it keeps firing and erroring after the projectile stops.
Figured it out! I had called setInterval and assigned it to interval1 TWICE, so the first one never was being stopped.
Since you got meters, its fine I guess. But if its km then a switch to mile and vice-versa.
Or maybe even in feet ?
We only use metrics in Physics, so I can't see that being much use, no offense or anything. I'm lazy. :-/

Posted: Thu Jan 11, 2007 6:15 pm
by Kieran Huggins
Ambush Commander wrote:We only use metrics in Physics...
In Canada too... where is Physics?

(the double assignment is still there on line 108)

Posted: Thu Jan 11, 2007 6:17 pm
by feyd
If it's obscure and in the US, it's probably in Jersey. :D

Posted: Thu Jan 11, 2007 6:18 pm
by Ambush Commander
It's in science, between mathematics and, erm, dunno.