>It is, but only for custom tags.

Darn, that's what I was afraid of.

Thanks,
Jamie

On Wed, 27 Mar 2002 15:33:49 -0500, in cf-talk you wrote:

>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
>> _
>> 
>
______________________________________________________________________
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