Hmm...seems like way too much but along those lines I'll try similar. No ideas on how cfquery does it?
On 10/24/05, Barney Boisvert <[EMAIL PROTECTED]> wrote: > > Hellishly slow, but you could take the tag body, write it to file > (with CFOUTPUT tags), and then CFINCLUDE it inside CFSAVECONTENT. > You'd have to manually change all the references to 'caller' scope, > however, which would be messy. > > Not that I'm recommending that route, but it would be a way to get > what you want. > > cheers, > barneyb > > On 10/23/05, John C. Bland II <[EMAIL PROTECTED]> wrote: > > Aight, this is my first shot at creating a custom tag. > > > > Usage: > > <cf_query name="test" server="server" database="db" username="un" > > password="pw"> > > SELECT * > > FROM table > > WHERE blah = 'prefix#data#' > > </cf_query> > > > > (where #data# is a string. Ex - data = "hi" so "WHERE blah = 'prefixhi") > > > > Aight, without any prefix using '#data#' seems to work fine but as soon > as a > > prefix is in place it doesn't evalute the #data# variable. It will do > "Where > > blah = 'prefix#data#'" instead. > > > > So, I tested: > > <cf_query name="test" server="server" database="db" username="un" > > password="pw"> > > <cfoutput> > > SELECT * > > FROM table > > WHERE blah = 'prefix#data#' > > </cfoutput> > > </cf_query> > > > > and that worked perfect. > > > > Now, I know cfquery has a built in cfoutput. How can I add a built in > > cfoutput into my custom tag? Hopefully I'm clear as to what I'm saying. > :-) > > > > -- > > John C. Bland II > > > > > > -- > Barney Boisvert > [EMAIL PROTECTED] > 360.319.6145 > http://www.barneyb.com/ > > Got Gmail? I have 100 invites. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222197 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

