again!
Orlando
-Original Message-
From: Bryan LaPlante [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 1:44 AM
To: CF-Talk
Subject: Re: UDF best practices
I am getting pretty good results with saving my udf's in the session scope.
see the tutorial at
http://www.kcfusion.org
server.myFunction(){}
Robert
-Original Message-
From: Correa, Orlando (ITSC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 3:02 PM
To: CF-Talk
Subject: RE: UDF best practices
Ok... that did it...
It was saving using the
CFSET Evaluate(scopeVar . func = func)
syntax
It's interesting how ColdFusion 5.0 seems to allow these
functions to be saved in a variable scope by referencing
the functions as if they were variables [scope.func=func]...
rather than by referencing them as if they were functions
[scope.func=func() or scope.func()=func()]...
Subject: RE: UDF best practices
| If I have a page request that calls several templates during the
| request...
|
| For Example:
|
| + application.cfm
| + myUDF.cfm
| + index.cfm
| + cfinclude template1.cfm
| + cfmodule template2.cfm
|
| Should I be able to include myUDF.cfm
1. In the admin set the server variables to auto-lock
2. run the template containing the UDFs before the application runs or on
machine startup.
3. Set a CFLOCK with a scope of server
4. Set each UDF to a variable in the scope server
CFSET Server.Test=Test()
5. Call the UDF on any page
Couldn't you just put them in the application.cfm for your application??
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
Sent: 08 August 2001 15:11
To: CF-Talk
Subject: Re: UDF best practices
1. In the admin set the server variables to auto-lock
2. run the template
2001 15:11
To: CF-Talk
Subject: Re: UDF best practices
1. In the admin set the server variables to auto-lock
2. run the template containing the UDFs before the application runs or on
machine startup.
3. Set a CFLOCK with a scope of server
4. Set each UDF to a variable in the scope server
:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 11:40 AM
To: CF-Talk
Subject: RE: UDF best practices
You could but what about re-usability outside the application. This is the
reason for the CFINCLUDE of the UDF. There's nothing stopping you from just
putting a UDF in the application.cfm
8 matches
Mail list logo