JavaScript Variable Problem

May 13, 2010 at 11:27:38
Specs: Windows Vista

i'm making a website for use on the iphone
OS. but it can be
viewed on normal browsers.
i'm using javascript to do some maths but it's
not working.

here's the site:

i've had it show msgboxes for every step of

the first textbox is saved as totgme, the
second is prvavg, the
third is crtscr.

i use these to test (incase you have no idea
what the site's
designed for):
totgme: 100
prvavg: 5000
crtscr: 10000

any help?

See More: JavaScript Variable Problem

Report •

May 13, 2010 at 12:46:41
fixed... used parseFloat()

Report •

May 13, 2010 at 14:53:54
I found the same solution, but also stumbled on another way:
totgme = document.doodlejump.totgme.value-0;
prvavg = document.doodlejump.prvavg.value-0;
crtscr = document.doodlejump.crtscr.value-0;

Report •
Related Solutions

Ask Question