> > I pass an attribute to the custom tag : <cf_myTag
> > query_name="myQuery">
> >
> > and within the custom tag I use:
> >
> > <cfoutput query="caller.#attributes.query_name#">\
>
> And why can't you just use:-
>
> <cfoutput query="#attributes.query_name#">
>
> from within the custom tag:-)
Because the attribute value being passed is, in the above example, just a
string that happens to contain a value that corresponds with the name of
another variable, the query object itself.
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
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists