Help me test this JavaScript application

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Help me test this JavaScript application

Post 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.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

One suggestion though: allow users to change measuring unit.
Excellent graph.
Why not flash ? Wouldn't it look nicer ?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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 ?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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. :-/
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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)
Last edited by Kieran Huggins on Thu Jan 11, 2007 6:18 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If it's obscure and in the US, it's probably in Jersey. :D
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

It's in science, between mathematics and, erm, dunno.
Post Reply