Ben Forta

Blog

December 17, 2000

Looking for Application.cfm

Many developers wrongly assume the ColdFusion application server searches only to the Web server document root to locate an Application.cfm file. In fact, the server searches all the way up the directory tree to the root directory of the hard drive. As this is rarely the desired behavior you should...

December 16, 2000

Improving Verity Search Performance

Verity data is stored in collections - files that are updated whenever index information is updated. But updates fragment the collection, and fragmented collections take up significantly more disk space and can eventually slow the collection to the point of being unsearchable. The solution is to...

December 15, 2000

Restricting File Upload Type

The tag can be used to process user uploads, and also allows developers to restrict the upload MIME type. But these restrictions are processed after the file is uploaded, which does not makes for an intuitive and user friendly application. The solution here is to use client side JavaScript to...

December 14, 2000

Generating Paged To Be Saved

Generating a file that you want users to save (and not display)? Use to set the MIME type to "unknown", this will force the browser to display the "Save As" box. (Applies to: ColdFusion All)

December 13, 2000

and Periods

Many SMTP servers treat a line containing just a period (. and nothing else) as a message body terminator. When using be careful to never generate a line containing just a period. (Applies to: ColdFusion All)

December 12, 2000

Preventing Refresh From Resubmitting Forms

At one time or another we've all had to wrestle with how to prevent users from hitting the Refresh button when a form ACTION page is being displayed so as to prevent the form from being resubmitted. One simple solution is to never actually display the ACTION page, instead, once the processing is...

December 11, 2000

To Abort Or To Exit?

and are both used to abort ColdFusion processing, but when used in with Custom Tags they are not alike at all. While terminates all request processing, gives developers far greater control over what happens after the abort greatly simplifying error checking, validation, and tag feedback. As a rule,...

December 10, 2000

Timing Query Execution

Most developers know they can refer to query.RecordCount to obtain the number of records retrieved by a query, many even know that they can access query.CurrentRow to access the current row in an output loop and query.ColumnList for a list of retrieved columns. But here's one that many developers...

December 9, 2000

is Similar to JavaScript - Kind Of

provides a scripting interface to parts of CFML - a syntax similar to that of JavaScript. Even comments within a block use the JavaScript comment format. But unlike JavaScript, is case-insensitive (like CFML itself). (Applies to: ColdFusion 4 (or later))

December 8, 2000

Application Specific Custom Tag Directories

ColdFusion supports a single shared Custom Tag directory per server - not one per application. Until this feature is added the workaround is to use to invoke Custom Tags instead of the syntax. Using absolute and relative paths to Custom Tags may be provided allowing access to tags outside the...

Page 480 of 489 (4885 posts)