There can be more than one form. This form is generated in a cfoutput. All
that I am doing is displaying X number of buttons for the user to click on
depending on what they want to delete.Each button is a separate form. IS
this the problem? That I have more than one form?
----- Original Message -----
From: "Dave Carabetta" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 10:08 PM
Subject: Re: JS Question
> Bruce,
>
> Complete shot in the dark, but could there be a limit to the length a form
> name can have in JS? Have you tried document.forms[0].submit() instead? By
> the way, forms[0] assumes that there is only one form on the page.
>
> Again, just a guess, but a troubleshooting technique nonetheless.
>
> Dave.
>
> ----- Original Message -----
> From: "Bruce H. Sorge" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, February 04, 2002 11:00 PM
> Subject: OT: JS Question
>
>
> > Why would I be receiving the following error message:Error, object does
> > not support this property or method.
> >
> > The JS is this:
> > <SCRIPT LANGUAGE="JavaScript">
> > <!--
> > function confirmDelete()
> > {
> > if(confirm("Are you sure you want to delete
> > <cfoutput>#qGetClientofClient.CofC_Name#</cfoutput>?"))
> > {
> > document.DeleteClientofClient.submit();
> > }
> > }
> > //-->
> > </SCRIPT>
> >
> > What is weird is that I have a similar script that works just fine. Here
> > is the one that works:
> > <SCRIPT LANGUAGE="JavaScript">
> > <!--
> > function confirmDelete()
> > {
> > if(confirm("Are you sure you want to delete
> > <cfoutput>#qGetClient.Client_Name#</cfoutput>?"))
> > {
> > document.DeleteForm.submit();
> > }
> > }
> > //-->
> > </SCRIPT>
> >
> > TIA,
> > Bruce
> >
> >
>
______________________________________________________________________
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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