> > Oh, the reason I asked was I have just read Kevin Towes' article "Using > ColdFusion Tags in CFScript", and he runs a query and dumps the results from > within CFScript. I thought this is a great idea and something I'd like to > do in CF5 to split my page processing from the html. e.g. > > <cfscript> > // do all the cf stuff here separately from html > </cfscript> > > <cfoutput> > html displaying results of above CF. > </cfoutput> >
Do this all the time..... I also have queries seperate from the cfscript too. Recently had to display a bunch of images in a circle on the fly.... Using CFSCRIPT to generate the HTML to a variable and then output the circle stuff in a suitable slot in the main HTML later it was easy as... The plain CFOUTPUT/CFLOOP approach seriously did my and my colleagues heads in trying to work out how to display the circle. The above is very similar to using cfsavecontent/cf_bodycontent to save output content to a variable and display in the appropriate place at a later time. Its a little annoying that you can't use cfinclude inside cfscript, otherwise I think I would be totally away from ye olde <cfset> etc. :o) Regards Stephen ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com 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