Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
Thread: Function is undefined
11-10-2012, 12:25 AM #1
- Join Date
- Oct 2012
- Thanked 0 Times in 0 Posts
Function is undefined
This is really important to fix as soon as possible. I have an absolute headache trying to figure out the mistake and I believe it has to be simple and easily overlooked. My debugger says that the ConvertToCm() and the onclick() function is undefined but I need help in figuring out how to fix that. please someone reply soon.
11-10-2012, 12:57 AM #2
11-10-2012, 01:00 AM #3
Usually, that means you had an error in the syntax of the function that you ignored.
Once a function has a syntax error, it is non-existent from other code's standpoint. Hence undefined.
(And I'd bet you are using MSIE, no?)
LogicAli beat me this time.
Anyway, learn to use the debugger in your browser!
If you are using Chrome, look here:
The MSIE debugger is very similar, though just a tad less user-friendly in my opinion.Be yourself. No one else is as qualified.
11-10-2012, 01:03 AM #4
And the "unresolved reference" LogicAli referred to is of course here:
cm = InchesToCentimeters(inches);
(Not that I see any reason to define one. Just plop the conversion code in there in place of tha function call.)Be yourself. No one else is as qualified.