...

View Full Version : objects never support my properties



JackFruit3D
01-16-2003, 10:15 PM
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">

beetle
01-16-2003, 10:36 PM
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">

JackFruit3D
01-16-2003, 10:47 PM
hmmmm
no go...

same error

thanks anyway thou

beetle
01-16-2003, 10:53 PM
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....

JackFruit3D
01-16-2003, 11:17 PM
http://www.callabus.co.nz/CustomerLookup.asp?Direction=Auckland&Direction2=Tauranga&#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.

beetle
01-16-2003, 11:23 PM
Hmmmm, it looks like you need fValidate (http://www.peterbailey.net/fValidate/) :D

JackFruit3D
01-16-2003, 11:37 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum