Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfinclude - clear page between processes

Status
Not open for further replies.

Extension

Programmer
Nov 3, 2004
311
CA
Hi,

I'm calling two scripts using cfinclude and I would like like to clear all the output (page) between each process.
How to do it ?

Code:
<--- Execute first script --->
<cfinclude template="scriptBin/script1.cfm">

<--- CLEAR OUTPUT (PAGE) BEFORE EXECUTING SECOND SCRIPT --->

<--- Execute second script --->
<cfinclude template="scriptBin/script2.cfm">

Thanks in advance.




 
Are you storing variables in SESSION, APPLICATION, FORM, URL scope, or something else?

As my buddy Rudy so eloquently puts it: "what are you doing?"


____________________________________
Just Imagine.
 
I'm also confused, because even if you did display include 1, then "clear it" and display include2, what was the point?

"what are you doing?"



Kevin

Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!
 
Not sure why either but here you go.


<--- Execute first script --->
<cfinclude template="scriptBin/script1.cfm">

<--- CLEAR OUTPUT (PAGE) BEFORE EXECUTING SECOND SCRIPT --->
<cfcontent reset="true" type = "text/html">


<--- Execute second script --->
<cfinclude template="scriptBin/script2.cfm">
 
you know, the more i think about this, the more i get the feeling that original poster is actually looking for the CFFLUSH tag

:)

r937.com | rudy.ca
 

Hi,

Sorry for not responding earlier.
I guess my original message was not that clear.

I'm simply looking for a function that could clear all the HTML output before executing the second script.

Why ? Because the first script will generate several files and once completed it will the display a quick report. So before starting the second process (script) I wanted to clear all the HTML output because I don't want it to overlap the second report that will generated once the second process is done.

I hope my explanation is clear enough. If not, I can post some of my code if necessary. Thank you again for all your help.

BTW. I was not looking for CFFLUSH.

 
i'm guessing you may want to rethink your approach

where does the first script "display a quick report" -- if it's in the web browser, then how did you send the page to the browser if the page hasn't finished?

i bet you are actually looking for CFFLUSH :)



r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top