James,
Coldfusion does not have any functions that will handle this
natively, but you could dynamically set the form name.
<cfset thisForm = "myFormName">
<cfoutput>
<CFFORM NAME="#thisForm#" ACTION="Foo.cfm">
<CFSET formName = thisForm>
</CFFORM>
#formName#
</cfoutput>
Douglas Brown
Email: [EMAIL PROTECTED]
----- Original Message -----
From: "James Sleeman" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 9:16 PM
Subject: getting NAME attribute of a CFFORM ancestor
> Hi all,
> any body know if it's possible to get, programmatically, the
value of the Name attribute of an ancestor CFFORM tag... that is
something like this pseudocode (simplified use),
>
> <CFFORM NAME="Blah" ACTION="Foo.cfm">
>
> <CFSET formName = getAncestorAttribute("CFFORM",
"Name")>
>
> </CFFORM>
>
>
> I tried using getBaseTagData("CFFORM") but apparently (in CF's
words...)
> "The parameter combination of function GetBaseTagData does not
specify a base tag that exposes any data. "
>
> If you're wondering, it's for use in a custom tag that writes
some augmented form fields for use in a CFFORM, sure I could pass
the custom tag a FormName attribute, but I figure that seeing as
you don't have to do <CFINPUT FORMNAME="Blah" TYPE="TEXT"....>
that you shouldn't have to do <CF_INPUT FORMNAME="Blah"
Type="IMAGE"....> either.
>
> ---
> James Sleeman
>
> Innovative Media Ltd
> Ph: (03) 377 6262
> http://www.websolutions.co.nz
>
> CAUTION: The information contained in this email message is
confidential and may be legally privileged. If the reader of this
message is not the intended recipient you are notified that any
use, dissemination, distribution or reproduction of this message
is prohibited. If you have received this message in error please
notify the sender immediately and destroy the original message and
any attachments.
>
> Views expressed in this communication may not be those of
Innovative Media Ltd.
>
>
>
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.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