September 23, 2001
embeds a Java grid applet in your web pages, and provides simplified action page processing for grid updates when SELECTMODE="edit". But has limitations, the most significant being that it can only update data in a single table. For greater update control use tags to do the job. When an editable...
September 22, 2001
APPLICATION variables are unique to a specific named application. To find out the name of the APPLICATION in use you may refer to APPLICATION.ApplicationName. But be careful to not change or overwrite this value (and if you ever use Struct functions on the APPLICATION scope remember to make sure...
September 21, 2001
Among other things, is used to embed Java form control applets into your forms (using , , etc.). If you use these controls make sure to provide support (or at least a descriptive message) for users who cannot run Java applets in their browsers. Every one of the control tags has a NOTSUPPORTED...
September 20, 2001
flushes the output buffer, and with it any headers (HTTP and page). This is why (and other tags) may not be used after a call. So is it possible to set a cookie after a ? Actually, it is, but not using . Instead, embed client side JavaScript in your page and have the browser set the cookie for you....
September 19, 2001
Want to use the latest CF5 features and still be able to run on older server versions? Check the SERVER.ColdFusion.ProductVersion variable to check the exact version being used - this way you can use version specific features only if you are running the appropriate version of ColdFusion. (Applies...
September 18, 2001
Everyone knows that access to shared scopes (like APPLICATION) must be locked, both read access (locked with READONLY) and write access (locked with EXCLUSIVE). But many don't realize that an IsDefined() test is a read and must be locked too. So, if you have code that looks like make sure to lock...
September 17, 2001
Want to spider a site, indexing all pages and links within it? Using the new Verity engine included with CF5 you can. In the Verity BIN directory (under CFUSIONVerity) you'll find a utility named vspider. Execute it, specify the URL and other parameters, and it'll do the rest for you. You'll be...
September 16, 2001
Variables passed to User Defined Functions (UDF's) are passed by value - a copy is made and the data within the UDF is a copy, not the original, and so any changes made within the UDF will not affect the original data. However, this is not the case with queries or structures - these are passed by...
September 15, 2001
Within a User Defined Function (UDF) code may access variables in any scope as well as local variables (local to the function itself). Any temporary variables, counters, loop condition variables and any other variables used within a UDF should be defined at the top of the function using the VAR...
September 14, 2001
The first time any CFM file is processed it must be compiled into pcode, and if there is sufficient space available in the template cache that pcode may be cached to prevent repeated unnecessary compilation (which could take longer than actual code processing). The undocumented tag can be used to...