...

View Full Version : VB checkform() error



yapjiwen
02-27-2004, 11:43 AM
Hi guys, ive got another error again.:o

Do anyone of u know what this error means?

Error:
Object doesnt support this property or method: "document.form1"

This appears whenever i try to submit my form and return the checkform() that i have coded using VBScript.

My codes.

<SCRIPT LANGUAGE= "VBSCRIPT">
function checkform()
dim ftest
ftest = false
if checkDirector() then
ftest = true
end if
checkform = ftest
end function

function checkDirector()
dim sendform
sendform = true
if (document.form1.DirectorOfOperations.value = "--------Choose Director---------") then
msgbox ("Please select a director of operations.")

sendform = false

end if
checkDirector = sendform
end function

</SCRIPT>

DirectorOfOperations = dropdownmenu name.
form1 = form name

im working on a .htm file that forwards to an asp.

Please help...thanks help would be greatly appreciated.

Mitch
02-28-2004, 12:07 AM
....document1 doesnt seem like a valid statement to me...

yapjiwen
03-01-2004, 01:41 AM
Mitch...wat do you mean?:confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum