> 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
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
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

Reply via email to