It is, but only for custom tags. To use this feature, you pass a struct
called AttributeCollection. Ie:
<cfset atts = structNew()>
<cfif x>
<cfset atts.foo = 1>
<cfelse>
<cfset atts.goo = 1>
</cfif>
<cf_wow normal=1 attributeCollection="#atts#">
Depending on x, you will either have foo or goo passed.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Jamie Jackson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 3:26 PM
> To: CF-Talk
> Subject: Dynamic attributes in CF tags?
>
>
> Is it possible to dynamically generate attributes in CF tags?
>
> Of course it's possible to dynamically change attribute values:
> <cftag attribute="#myVar#">
>
> But, is it possible to dynamically control *inclusion* of the
> attribute itself? For instance:
> <cftag #iif(len(myVar), de("attribute=" & myVar & '")#>
>
> The above doesn't work, and neither does this:
> <cftag <cfif len(myVar)>attribute="#myVar#">>
>
> My problem is much more complex, but this is the crux of it.
>
> Thanks,
> Jamie
> _
>
______________________________________________________________________
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