> Yexley Robert D Contr Det 1 AFRL/WSI wrote:
>> 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.

> Make an array with the pages you want to suppress, then check if the
> current script name is in that array. It is easier to expand for later
> use.

Please, for the LOVE OF GOD avoid using cgi variables to determine whether
or not to display stuff in your OnRequestEnd.cfm ... You'll save yourself
many many hours or possibly EONS of time managing that list of files that
need to suppress display, you won't have to worry about paths and whether or
not they'll change... and if I ever have to add something to your app, I
won't be adding to the confusion. :)

Use a variable that you can set further up on the page, that way any given
page can suppress the footer by using a <cfset> tag, and you can keep that
information with the content it's associated with.

Sorry for the rant... I just noticed about a half-dozen responses to help
you do it using the cgi vars and it raises the hackles on my neck. :)


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