[Javascript] Javascript and FF
Del Wegener
del at delweg.com
Mon Aug 31 13:04:52 CDT 2009
----- Original Message -----
From: "Philip Thompson" <philthathril at gmail.com>
>>> The javascript error is at line 424,
>>> if (calculator.measurement_units[k].checked == true)
>>> The report says: "calculator" is not defined.
>
> BTW, I think you meant "document.calculator," not just "calculator."
> You have to give it a context. You have 2 options (off the top of my
> head):
>
> 1. Change all instances of calculator to document.calculator
> 2. Keep calculator and assign document.calculator to it before calling
> it
>
> var calculator = document.calculator;
>
> Of course, you would have to do this for every scope necessary.
>
> Cheers,
> ~Philip
Item 1 was easy to implement and it fixed the problem. Thanks Philip.
More information about the Javascript
mailing list