• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

Firefox javascript error "is not defined"

Hello,

I am having a problem with executing some javascript in Firefox.  It is giving me this error:

GasCalculator is not defined line 14

The file in question is located at http://dev.armorlid.com/gas.html

It seems to work fine in all other browsers.

I'm sure this is easy, but my brain isn't working right today.  Thanks.
0
FourMat
Asked:
FourMat
1 Solution
 
cmalakarCommented:
you have to refer the GasCalculator object as..

document.GasCalculator.gallons.value
0
 
FourMatAuthor Commented:
Thanks!
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now