> 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.

I don't think you can do what you're trying to do from CF directly. If you
look at the code generated by CFFORM and CFINPUT, the generated INPUT tag
doesn't require the form name in any meaningful sense in any case. However,
my guess is that you're trying to generate useful client-side code, so why
bother trying to get the form name from CF anyway? Just use JavaScript to
determine the form name as required.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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

Reply via email to