July 30, 2001
If your application uses client-side caching, then you may find that during debugging you need to override caching (forcing a reload). In Internet Explorer you can do this by pressing Ctrl while Refresh is clicked. In Netscape use Shift and Reload. (Applies to: ColdFusion All)
July 29, 2001
generated graphs may contain grid lines, but instead of specifying the interval you must specify the number of lines to be displayed (excluding the bottom line). So, if you were graphing from 1% to 100% and wanted a line at each 25% you'd need to specify GRIDLINES="3". (Applies to: ColdFusion 5 or...
July 28, 2001
Using to create bar or area charts? allows you to specify a scale to be used, but remember, the scale range (specified in SCALEFROM and SCALETO) must be numeric only. (Applies to: ColdFusion 5 or later)
July 27, 2001
Nested Custom tags allow you to create tag families - parent tags with associated child tags. Usually data is pushed from child tags up to parent tags for processing, but if you find that you need to access parent data from within child tags, use the GetBaseTagData() function within the child tag....
July 26, 2001
Creating an array that is expected to have hundreds of elements? Arrays usually grow as needed, and dynamic resizing takes times. You can use the ArrayResize() function as soon as the array is created (with ArrayNew()) to set the array to an initial size in one step saving precious resources....
July 25, 2001
The GetMetricData() function can return average server response time (how long it has taken to process requests). Values are reported using a sliding window the default size of which is 120 seconds. You can change this value (making it greater or smaller) by setting registry key...
July 24, 2001
The GetException() function may be used to obtain the Java exception object raised by a prior call to a Java object. Because ColdFusion resets the exception object on each method call you must use GetException() before any other methods or objects are called. (Applies to: ColdFusion 5 or later)
July 23, 2001
User Defined Functions (UDF's) can accept an unlimited number of parameters. To find out how many parameters were passed simply use the code ArrayLen(Arguments) to obtain the number of elements in the Arguments array. (Applies to: ColdFusion 5 or later)
July 22, 2001
User Defined Functions (UDF's) may access variables in just about any scope, including the default VARIABLES scope. But what if there is a local (within the UDF) variable of the same name? References to the variable name will refer to the local variable, to refer to the variable in the caller page...
July 21, 2001
User Defined Functions (UDF's) may accept required and optional parameters. To make a parameter required simply name it in the function declaration. To make a parameter optional do nothing at all. If it is there use it, and if not not. How do you access unnamed parameters? Use the Arguments array...