I think that GetPageContext() will not try to parse html files, saving some
processing.

Ade

-----Original Message-----
From: Ciliotta, Mario [mailto:[EMAIL PROTECTED]
Sent: 14 January 2005 22:50
To: CF-Talk
Subject: GetPageContext vs <CFINCLUDE>


Hi can anyone tell me the value of using getpagecontext vs <CFINCLUDE>.

I have a few sites that make big use of CFINCLUDE to include HTML and I was
wondering if the getpagecontext is a better choice.  Also do you need to put
CFOUTPUT around it or just use it in cfscript

Here is my example below.

Thanks
Mario

<CFINCLUDE template="./html/spacer.htm">


<CFSCRIPT>
getPageContext().include("./html/spacer.htm")
</CFSCRIPT>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 12/01/2005


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190550
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to