View Full Version : Quickie - Error message I don't understand
10-14-2003, 04:22 PM
The following code:
var template = "9999-XXX-99999AA";
var equal = true;
NOC = document.BrowseForm.NOC;
alert("NOC " + NOC.length + " temp " + template.length);
gives the error message
"NOC undefined temp 16".
Anyone got a clue why on earth this is happening??
10-14-2003, 04:25 PM
Either document.BrowseForm.NOC doesn't exist or it's not an object which has a length property so NOC.length is an undefined field which is why you see undefined displayed as it's value.
10-14-2003, 04:47 PM
:o :o just saw that I've embarassed myself nicely with this one... lol! Of course it's messaging that out - I told it to! :o :o Oh well!!
I've got the BrowseForm there no probs at all...
10-14-2003, 04:56 PM
Got it now... Grrr....
NOC is a textbox in the form. So it's NOC.value.length Grrr....
Thanks for helping a clueless individual, Roy ;)
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.