![]() |
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.
Code:
<html> |
Quote:
|
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: https://developer.chrome.com/extensi...debugging.html The MSIE debugger is very similar, though just a tad less user-friendly in my opinion. |
And the "unresolved reference" LogicAli referred to is of course here:
Code:
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.) |
| All times are GMT +1. The time now is 06:01 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.