Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VB checkform() error

    Hi guys, ive got another error again.

    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.

  • #2
    New Coder
    Join Date
    Feb 2004
    Location
    Virginia
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ....document1 doesnt seem like a valid statement to me...
    Umm...dude?
    Hell just broke loose...

  • #3
    New Coder
    Join Date
    Jan 2004
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Mitch...wat do you mean?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •