Forum Moderators: mack

Message Too Old, No Replies

Javascript error

         

HeadBut

4:18 pm on Jun 22, 2006 (gmt 0)

10+ Year Member



I get an error: 'document.PhoneLookup has no properties'
I tried to make the field not hidden? and I tried type="text" with style=" display: none;". Whats causing this error? I also put a space in the value?

here is the line thats seems to be problematic:

if(document.PhoneLookup.PNField.value = ""){

Blah,Blah.....
}

the object is this:
<FORM NAME="PhoneLookup" ACTION="includes/lookup.cfm" METHOD="POST">
<INPUT TYPE="hidden" NAME="BemmsField" VALUE="">
Blahblah..
</form>

oxbaker

3:36 pm on Jun 23, 2006 (gmt 0)

10+ Year Member



in your example you dont even have a field labeled PNField. you have one hidden field. did you omit it for the example? or is it not there?

post the entire form html so we know if your just type-oing yourself out or if you really are missing a field (and therefore the properties)

mcm