What you are trying to do will not work in Internet Explorer, either, as
far as I can see.
Try this:
<!--- form_submit.cfm --->
<cfif IsDefined("FORM.submitted")>
Hi there! You submitted the form!
<cfelse>
Please Type Something:<br>
<form method="post" action="form_submit.cfm">
<input type="text" name="submitted" value="" size="20">
<input type="button" name="button1" value="Click Me!"
onclick="javascript:document.forms[0].submit();">
</form>
</cfif>
<!--- --->
Alternately, you can name the form and use
document.forms.formname.submit(); if you have multiple forms on the
page, instead of referring to them with array notation. Friendly names
are easier to use, and HECK, more fun!
-Andy
> -----Original Message-----
> From: Stuart Duncan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 6:07 PM
> To: CF-Talk
> Subject: OT: Netscape 6 and JS form submitting
>
>
> Sorry for the very off topic post, but this has me stumped and
> you all have
> always been the best place to go to for help.
>
> Netscape 6 has very little documentation out there, so doing the
simplest
> tasks seems tough.
>
> I am just trying to submit a form using Javascript... and it won't
work.
>
> document.form.submit() returns an error saying that object is not
> a function.
>
> I've tried document.getElementsByName('form')[0].submit() and
> document.getElementsByTagName('form').submit()
> and they all return errors.
>
> Any help with this would be hugely appreciated. Nutscrape is
> driving me crazy.
>
> Stuart Duncan
> Logiforms.com
> MaracasMedia Inc.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists