Ben Forta

Blog

April 6, 2001

Thumbnails Make Working with Images Easier

Working with lots of images? ColdFusion Studio features an integrated image thumbnail viewer Simple select the directory containing the images, and then click the Thumbnails button (the one with the picture of a mountain and a blue sky). Studio will create a thumbnail for each image allowing you to...

April 5, 2001

Working with Multiple Submit Buttons

HTML forms usually have a single submit button, but you can actually create as many submit buttons as you'd like (for example, one for "Edit" and one for "Delete"). No matter which button is clicked, the same form will be submitted to the same ACTION page. So how will you know which button was...

April 4, 2001

When Loop Conditions Become False

lets you create "while loops" - loops that execute as long as a specified condition is TRUE. But it is important to note that the CONDITION is evaluates before each iteration, and so if the CONDITION becomes FALSE mid-iteration that iteration will still continue in its entirety. (Applies to:...

April 3, 2001

Multiple Values

Most developers know that and are good alternatives for some lists of and tags. But many developers do not know that a single can contain multiple values simply by specifying those values in a list (comma delimited, by default). This does mean, however, that if your statement needs to match a value...

April 2, 2001

Prevent Deadlocks

Deadlocks are locks stuck in a state where multiple locks are waiting for each other to unlock (and so none ever do). Deadlocks are usually caused by nesting locks, and so the way to prevent deadlocks is to ensure that nesting always occurs in the exact same sequence, and that less specific locks...

April 1, 2001

Working With Multiple Child Tags

ColdFusion CustomTags can have associated tags, child tags used primarily to pass data to the parent tag. By default, the attributes saved by all child tags (no matter how many there are) are stored in the same array - ThisTag.AssocAttribs. If you are working with multiple child tags and need a way...

March 31, 2001

Avoid Single Threaded Sessions

To eliminate the need for the locking of SESSION variables, an option may be enabled in the CF Administrator that will force sessions to be single threaded. Single threading SESSION variables ensures that there will never be more than one request active for any given SESSION, and thus there is no...

March 30, 2001

Verity and Case-Sensitivity

is used to perform full-text searches against a Verity collection. The search text is specified in the CRITERIA attribute, and text in any case may be specified. But, be careful when you mix case. If the search text is all upper-case or all lower-case the search will be case-insensitive. But if the...

March 29, 2001

Don't Use the SERVER Scope

ColdFusion features a variable scope named SERVER which is shared by any and all applications and requests (as opposed to APPLICATION which is shared by a single application only). As a rule, the SERVER scope should not be used within your applications. Because it is shared it is highly susceptible...

March 28, 2001

Reset Before Sending Non-HTML Content

If you are using ColdFusion to generate non-HTML output (for example, comma-delimited data for use in Microsoft Excel, or RTF output for use in Microsoft Word) then extraneous output (or whitespace) could prove problematic. As such, you will likely need to make sure that no other data is sent to...

Page 469 of 489 (4885 posts)