Nice one. I'll examine this a little later. Thank you for your input Paul.
andy
-Original Message-
From: Paul Vernon [mailto:paul.ver...@web-architect.co.uk]
Sent: Wednesday, January 14, 2009 10:41 AM
To: cf-talk
Subject: RE: CFC or UDF to rewrite the tag of a document?
Actuall
Paul Vernon wrote:
> Actually you can "go back" and modify the content of the buffer...
Yes you can by using either the 'Request' functions and|or the
pageContext Java Objects, as your examples show and I mentioned in my
first post.
But this goes beyond a simple CFML function run inline.
Lookin
Actually you can "go back" and modify the content of the buffer...
1. In onRequestStart, set up a cfparam
2. Use this in the onRequestEnd function. Obviously you'll need to var the
code where appropriate...
[^\<]*", "")>
currentbuffer
3. Create your changeTitle fu
AM
To: cf-talk
Subject: Re: CFC or UDF to rewrite the tag of a document?
Andy Matthews wrote:
> To clarify, what I'm looking for is the ability to override the title
> tag before the rendered HTML is sent to the browser.
>
That is not going to happen with a simple function, neith
Andy Matthews wrote:
> To clarify, what I'm looking for is the ability to override the title tag
> before the rendered HTML is sent to the browser.
>
That is not going to happen with a simple function, neither UDF or
Component, in a normal flow of processing. CFML process sequentially
from
Does anyone know of a CF code snippet that will alter the title tag of a
document when called from anywhere else in the code? I thought CFLib had
one, but I can't seem to find it.
To clarify, what I'm looking for is the ability to override the title tag
before the rendered HTML is sent to the brow
> I know the web does not have state. By "CFCs are statefull";
> Do you mean that in our shopping cart example I have a
> authentication.cfc once a user is authenticated by the cfc
> that it knows about the user through their purchase? Or do I
> have to create the cfc in session scope and the
One other question:
I know the web does not have state. By "CFCs are statefull"; Do you mean
that in our shopping cart example I have a authentication.cfc once a user is
authenticated by the cfc that it knows about the user through their
purchase? Or do I have to create the cfc in session scop
root and one at IT folder level?
David
- Original Message -
From: "Jim Davis" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Monday, March 28, 2005 1:19 AM
Subject: RE: CFC or UDF
>> -Original Message-
>> From: David Brown [mailto:[EMAIL PROTECTE
The answers thus far are great. Generally they way I look at it is
this. CFCs are stateful, meaning they can hold data and persist over
time, udfs are just a place to put commonly used code. For instance if
you have a bunch of time calculation functions could just put them in
a time_finctions.cfm a
> -Original Message-
> From: David Brown [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 28, 2005 12:19 AM
> To: CF-Talk
> Subject: CFC or UDF
>
> I am new to both of these features, but I am getting the hang of them. My
> question is: What is the difference betwe
> What is the difference between them?
A CFC is generally used to encapsulate portions of business logic into a
reusable API that can be called by one or more applications in different
ways. You can use a CFC to publish a web service that can be called from
anywhere, or you can use it as a functi
I am new to both of these features, but I am getting the hang of them. My
question is: What is the difference between them?
What are the pro's and cons to each?
If I create a CFC with a several methods in it is that not the same thing if
I have one template with the several functions on it?
13 matches
Mail list logo