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
_
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to