December 2, 2000
Hidden form fields are a great way to pass data back and forth while processing a multi-part form -but you must use these carefully. As they are form fields they are essentially strings within quotes. As such, you must make sure to never place a string containing quotes in a hidden field. If you do...
December 1, 2000
You can improve the performance of statements (as well as statements with lots of clauses) by moving the most frequently matched cases to the top. (Applies to: ColdFusion All)
November 30, 2000
ColdFusion variables can be variables - in other words, you can refer to a variable name in a variable - and you can do this easily too. All you need to is refer to the variables like this to set the value of the variable referred to in var. (Applies to: ColdFusion 4 (or later))
November 29, 2000
We've all had to embed debugging code into our pages only to have to take it all out, and then reinsert it again. The new ColdFusion IsDebugMode() function lets you programmatically determine if debugging is enabled, allowing you to leave debugging code in your pages knowing that it'll only be...
November 28, 2000
ColdFusion supports the internationalization of numbers, dates, currencies, and more using the LS functions. These functions generate output that varies based on the currently selected locale (set using the SetLocale() function). A list of supported locales is stored in the...
November 27, 2000
ColdFusion features a whole set of list manipulation functions (all beginning with the word "list" and all of which take a list as the first parameter). By default these functions manipulate comma-delimited lists, but you are not limited to this delimiter. In fact, every one of the list functions...
November 26, 2000
ColdFusion usually processes requests received from clients (such as Web browsers or WAP devices). But should you ever need ColdFusion to process a page without initiating it from a browser you can do so via CF's CGI interface - cfml.exe. Although intended to provide support for Web servers not...
November 25, 2000
ColdFusion allows you to list all available variables within the APPLICATION, CLIENT, and SESSION scopes (the latter two relative to the currently logged in user). But the way you access these lists is not consistent across all three scopes. APPLICATION and SESSION are structures, so you can use...
November 24, 2000
Using SQL Server and tables with identity fields (auto increment primary keys)? Then you have probably needed to know that assigned id and have resorted to using follow-up queries (probably within a transaction block). Well, here's a much simpler (as well as safer) solution. Create a trigger on the...
November 23, 2000
Developers are always looking for better ways to uniquely identify clients, and many try to use the remote IP address (which you can get from a CGI variable) for this purpose. Unfortunately, this does not work safely, IP addresses can never be assumed to be unique. Why? Different users of some...