February 10, 2001
We've all done it - insert a # before a variable name and forget the matching one, or type an opening quote or double quote but forget the ending one. ColdFusion Studio's Auto-Complete feature can help, but by default it does not complete pound signs and quotes. To turn on this feature select the...
February 9, 2001
The Euro is in the process of becoming the primary (or only) currency of many European countries, and ColdFusion supports the reading and writing of correctly formatted Euro values. Unlike other supported currencies, the Euro is not tied to any single country (or locale) so the standard locale...
February 8, 2001
Ever need to work with hexadecimal numbers (or any other non base-10 numbers)? ColdFusion will not automatically treat these as numbers, it's your job to convert them to "regular" numbers first. You can do this using the InputBaseN() function which takes a string and a base and returns a number. To...
February 7, 2001
The tag is very useful in halting processing in validation and authentication tests. When you use you usually need to display an error message along with it, and that usually requires some sort of format processing. One simple option is to use the SHOWERROR attribute which lets you specify an error...
February 6, 2001
and should be used to trap errors so as to be able to programmatically manage post error handling. To effectively use this feature, error handling should occur at at least two levels - at a page wide level (to catch all errors within a page) and at a feature or tag specific level (to catch errors...
February 5, 2001
Passing ColdFusion strings to client-side JavaScript is easy - all you need to do is refer to the variable in your JavaScript code and when ColdFusion parses the code it'll replace the variable with the string. But what if the string contains special characters -characters that are invalid within...
February 4, 2001
Many ColdFusion tags take queries as attributes, queries usually created with (or some other tag). So how to you use tags that expect queries with data of your own? Simply create your own queries on-the-fly. CFML features a function named QueryNew() that can be used to create queries, as well as...
February 3, 2001
Windows INI style files are plain text files that are well suited for reading and writing of configuration information. And while Windows itself does not really use these any more (the registry essentially replaced them), application developers still find them very useful as they are easy to work...
February 2, 2001
ColdFusion Studio has all sorts of toolbars, and they can be moved and docked as needed so as to give you instant access to the functions and features you need most. But the most useful (and most overlooked) toolbar is one that does not come with Studio - it's the one you create yourself. Studio...
February 1, 2001
Never assume your Web server is secure - chances are that it is not, despite your best intentions. Of all the machines on your network the Web server is the most visible, the one that most information is known about, and the one that most users access. Without much effort would-be hackers can find...