Ben Forta

Blog

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...

March 27, 2001

Shhh, Don't Tell Them It's ColdFusion

Finding that mail sent via is not being accepted? The problem could be related to spam filters - because ColdFusion makes it so easy to send mail (even bulk mail) some spam filters block any mail that was generated by ColdFusion. How do they know that ColdFusion generated the message? By looking at...

March 26, 2001

Find All Form Fields

When a form is submitted to ColdFusion a variable named FORM.FieldNames will automatically be created containing the names of all the submitted form fields. The names are in a comma delimited list, so the List functions and can easily be used to manipulate and access them. But one thing to note -...

March 25, 2001

Deleting SESSION Variables

Ever needed to delete SESSION variables, even all SESSION variables? Even though there is no delete function (as there is for CLIENT variables), you can still do this. SESSION is a structure, and all standard structure functions can be used to manipulate a user's SESSION scope. StructDelete() can...

March 24, 2001

True, False, And …

When testing for TRUE or FALSE in ColdFusion, remember the following. Any non zero number (even negative numbers) will evaluate to TRUE, 0 evaluates to FALSE. YES evaluates to TRUE, NO evaluates to FALSE. Anything else (text, for example) will not evaluate to either TRUE or FALSE. (Applies to:...

March 23, 2001

Database Debug Settings - Without Using the Administrator

Trying to debug database query problems but don't have debug output turned on? You're in luck. You can simply add the DEBUG attribute to your and the debug output will be displayed at the bottom of the page regardless of ColdFusion Administrator settings. (Applies to: ColdFusion All)

Page 470 of 489 (4890 posts)