Title: Message
A more complete example (modified from:  http://weblogs.macromedia.com/cantrell/archives/2005/01/eliminate_coldf.cfm - in the comment by Jon Alsbury...)
 
Put this in a template and run it....
=====================================================================
 
<h1>I like fish!</h1>
 
<cfscript>
 
// copy the current contents of out (which is what cfmx will send to the browser at the end of processing)
pageContent = getPageContext().getOut().getString();
 
// now we have a copy, clear the out buffer
getPageContext().getOut().clearBuffer();
 
// tidy up
pageContent = rePlaceNoCase( pageContent, "fish","Chocolate", "all" );
 
// send our cleaned content to the browser
writeOutput( pageContent );
getPageContext().getOut().flush();
 
// job done!
 
</cfscript>
 
=====================================================================
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Harris
Sent: Tuesday, 12 September 2006 1:53 p.m.
To: [email protected]
Subject: RE: [CFCDEV] get page content

you mean this?
 

pageContent = getPageContext().getOut().getString();

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Scott
Sent: Tuesday, 12 September 2006 1:20 p.m.
To: [email protected]
Subject: RE: [CFCDEV] get page content

Hmmm,

 

Yes it is, but that is not answering my question.

 

 

Senior Coldfusion Developer

Aegeon Pty. Ltd.

www.aegeon.com.au

Phone: +613  8676 4223

Mobile: 0404 998 273


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
This email contains confidential information. If you are not the
intended recipient of this email, please notify Straker Interactive 
and delete the email. You are not entitled to use it in any way.
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
This email contains confidential information. If you are not the
intended recipient of this email, please notify Straker Interactive 
and delete the email. You are not entitled to use it in any way.
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to