This function peaks my interest once again. GetPageContext().Include("somefile.cfm") will parse a cfm page, but not htm page ("somefile.htm"). So it has some internal parse switch to determine whether or not to parse a relative link.
Sooo...is there some sub-function within GetPageContext() that might parse a variable (that could be read from a file or created on the fly? <cfscript> // example (quick one) Bob="I love ##BobsGirlfriend##, but this is a pound: ##."; BobsGirlfriend="Jane"; GetPageContext().Parse(SomeString); </cfscript> Would output: "I love Jane, but this is a pound: #." This isn't exactly what I'm talking about, but close. And I've been searching high and low for something like this for a very long time... Tyler (I know this is a stretch, using GetPageContext() and all, but I can't seem to find anything close to doing what I want) -----Original Message----- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 7:04 PM To: CF-Talk Subject: Re: CFLINCLUDE in CFSCRIPT Perfect, thanks. I'll give you credit and a link in the docs to this (as well as Charlie credit for his CFLOCATION portion). Are there any solid docs on the GetPageContext() stuff? > > I'm redoing my CFSCRIPT docs and one of the things I'm adding in are > > all the 'extra' things you can do with it in CFMX. One such thing is > > a CFLOCATION using > > GetPageContext().forward("somefile.cfm") > > I believe that there was a CFINCLUDE type code as well, but I can't > > seem to find it. If anyone remembers it, please let me know. > > Thanks > > > You can do an include with getPageContext().include("somefile.cfm"). > However, it is not the same as doing a cfinclude. See a blog entry I > made on the subject. > http://devilm.com/archives/000037.html > > Matt Liotta > President & CEO > Montara Software, Inc. > http://www.MontaraSoftware.com > (888) 408-0900 x901 > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com