Better than the cfabort is the <cfexit> tag. You use within the actual template you wish to not include or stop processing.
You can continue processing, just not within the included file. Sort of like a cfabort for each individual template. - j -----Original Message----- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 3:58 PM To: CF-Talk Subject: Re: Suppress OnRequestEnd.cfm output > I have an OnRequestEnd.cfm file that I use for my application, and I find > it to be very useful, but I have a few documents that are used for the > contents of iframes on which I would like to be able to explicitly > suppress the output of the OnRequestEnd.cfm file. Is there any way to do > this at the document level? I've searched the archives, and haven't found > much pertaining to this. Does anyone have any ideas? Thanks in advance. You can use <cfabort> at the bottom of your document and that will prevent the onrequestend.cfm file from being processed... If there is non-display code in the onrequestend.cfm that you need to process, you can place this code in a separate file and use a <cfinclude> tag either prior to the <cfabort> tag, or simply place the <cfabort> at the end of your included module... i.e. onrequestend.cfm <cfoutput>display#stuff#here</cfoutput> <cfinclude template="requestend_proceduralcode.cfm"> requestend_proceduralcode.cfm <cfset client.lastaccesstime=now()> etc... <cfabort> Or you can use a variable, i.e. <cfset request.displayfooter = "no"> and use a cfif around your display code in your onrequestend.cfm... Just remember to use a <cfparam> prior to your <cfif> statement. I wouldn't go the route of trying to use cgi.path_info, etc. to determine whether or not to display your footer output -- that way leads to madness. :) Isaac Dealey Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 ______________________________________________________________________ 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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

