Ben Forta

Blog

February 25, 2001

Detecting Custom Tag Calls

ColdFusion 4 added support for sophisticated Custom Tags (tag pairs and nested tags), and the way a Custom Tag is called now varies based on the tag type - simple tags do all their processing at once, tag pairs do processing in various execution modes, and nested tags have to do much of their...

February 24, 2001

No Undo Restrictions

Depending on the exact version of ColdFusion Studio you are using, you might not be able to use the Undo feature to undo changes made before a file was saved. (This was the default at one point). Fortunately, you can (and should) change this - select Settings from the Options menu, click on Editor,...

February 23, 2001

Determining the File Being Executed

CFML provides two functions for determining the name of the CFM file being executed. GetCurrentTemplatePath() returns the name of the current CFM file, and so does GetBaseTemplatePath(). The difference? If these functions are used within an included file GetCurrentTemplatePath() returns the name of...

February 22, 2001

Accessing Stored Procedure Return Codes

Many DBMS' allow stored procedures to return result codes - indicators, counters, status codes, and more. To retrieve these values use to execute the stored procedure instead of , and make sure to set RETURNCODE="YES" (the default is "NO"). The result code will then be accessible as...

February 21, 2001

Creating Persistent FTP Connections

can be used to perform server-side FTP operations - get, put, delete, rename, and more. operations are usually performed in a single request, but connections can be maintained across requests if needed. To do this simply create the FTP connection within a persistent scope, for example the SESSION...

February 20, 2001

Grouping Output Data

The GROUP attribute is used to group database output so that rows may be grouped as needed. To use this attribute correctly your database query must be sorted properly using the same sort sequence as the one used for grouping. And be sure to use the SQL ORDER BY clause (although it is named GROUP...

February 19, 2001

Extending Validation

and can greatly simplify implementing client side form field validation by generating frequently used JavaScript validation code for you. But what if you want to extend the built in validation to perform validation not supported by the generated code? You can do this using the tag's ONSUBMIT...

February 18, 2001

Avoid 2 Digit Years

ColdFusion is very flexible and accommodating when it comes to working with dates, and almost any date format you can imagine will be interpreted and processed correctly. This is even true in the case when two digit years are provided - ColdFusion will usually process the date correctly (assuming...

February 17, 2001

Beyond the Third Dimension

ColdFusion supports arrays of 1, 2, and 3 dimensions. Need an array of more than 3 dimensions? You can't create one using the ArrayNew() function but you can achieve the same result by nesting arrays yourself. (Applies to: ColdFusion All)

February 16, 2001

A Better Clipboard

Everyone is familiar with the clipboard feature found in most Windows applications - this is what facilitates cut-and-paste or copy-and-paste functionality. But you might not be familiar with Studio's enhanced clipboard which lets you save multiple items and then paste them individually or all at...

Page 473 of 489 (4885 posts)