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 7 of 7
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    objects never support my properties

    OK...
    i feel like a noob asking this but my head hurts too much and i need a quick solution.

    i have the following script:

    function checkdata(){
    <!--
    // Check that search field has been filled in
    if (document.emailform.Confirmation.value == "") {
    alert("Please Fill in the Email Confirmation Field");
    document.emailform.Confirmation.focus();
    return false;
    }
    else{
    document.emailform.submit();}
    return true;
    }
    //-->
    </script>

    and i'm getting an error... object doesn't support this property or method... in regards to the submit() line...

    what stupid thing have i forgotten???

    the script is activations witht he following

    <input type="button" name="submit" value="Submit" onclick="checkdata(); document.emailform.FormAction.value = 'submit';" class="buttons">

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try this

    function checkdata(f){
    <!--
    // Check that search field has been filled in
    if (f.Confirmation.value == "") {
    alert("Please Fill in the Email Confirmation Field");
    f.Confirmation.focus();
    return false;
    }
    else{
    f.submit();}
    return true;
    }
    //-->
    </script>

    <input type="button" name="submit" value="Submit" onclick="checkdata(this.form); document.emailform.FormAction.value = 'submit';" class="buttons">
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmmmm
    no go...

    same error

    thanks anyway thou

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you give me a link to the page? It seems like soemthing else is amiss...or at least show me the HTML of the form....
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #5
    New Coder
    Join Date
    Aug 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.callabus.co.nz/CustomerLo...auranga&#Step2

    i'm testing with get on = airport, get off = Greerton, date = 18/01/2003

    submit and pick a random time for travel.. it makes no difference
    the next page where you enter your details is the page i'm having differculty with.

  • #6
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmmmm, it looks like you need fValidate
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #7
    New Coder
    Join Date
    Aug 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You know what
    go figure...

    it works now...

    DON'T ask me what i just did...
    gotta love the crap involed with IE

    Thanks for your help


  •  

    Posting Permissions

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