Ben Forta

Blog

November 22, 2000

Using Active Directory with ColdFusion

If you are using Windows 2000 Server on your network you probably have Active Directory installed. Active Directory is Win2K's Directory Service, and it'll typically store data on users, groups, and more. ColdFusion users can access the data in Active Directory without having to use any special...

November 21, 2000

Prevent Ambiguity - Parenthesize All Expressions

When the expression is evaluated, what will the value of x be? Is it 50 (9 times 6 is 54, minus 4 is 50), or 18 (6 minus 4 is 2, times 9 is 18)? The value is actually 50, but as you can see, order of evaluation makes a big difference. For this reason you should always use parenthesize to explicitly...

November 20, 2000

The REQUEST Scope

Familiar with the REQUEST scope? This variable type (introduced in ColdFusion 4.01) is much like the VARIABLES scope in that it persists until a request has finished processing, but unlike VARIABLES it is visible to all pages that are part of a request (even Custom Tags). And you can use REQUEST...

November 19, 2000

Two Ways to Divide

ColdFusion has two division operators, / and , and they are not the same. / is the standard division operator, divides a number and returns whole numbers only (integers, no fractions). So if you code x will be 3.33333333333, but if you code x will be 3. (Applies to: ColdFusion All)

November 18, 2000

Time to Use Tag Pairs and Sets

Custom tags are an important part of writing organized, structured, and reusable code. And basic Custom Tags are easy to write too. But when you find that you end up with long lists of tag attributes, to attributes with multiple values, then it might be time to take your Custom Tags to the next...

November 17, 2000

Use Those VTM Files

Ever wondered what to do with those VTM files that come with many of the Custom Tags out there? VTM files are used by ColdFusion Studio (and HomeSite) to display Tag Editors - the dialogs that are displayed when you right click on a tag and select Edit. How do you use VTM files? Simply drop them...

November 16, 2000

When Not to Use

The ColdFusion tag is used to group a set of SQL statements that need to be executed as a batch (allowing for rollbacks and explicit commits). But before you use this tag, stop and think - do you really need to do this? Could you process the entire set of statements within a stored procedure...

November 15, 2000

Flush Studio's VTM Cache As Needed

ColdFusion Studio caches VTM files (to improve performance). If you are creating and testing VTM's you'll need to flush the cache frequently so as to be able to test your changes. Instead of quitting and restarting Studio, you can use the following keystrokes to flush the cache: Ctrl + Alt + Shift...

November 14, 2000

File Names and Case-Sensitivity

If you are running ColdFusion on a Unix system (Linux, for example) then you must pay special attention to file names and their case-sensitivity. This is especially important when using special files like "Application.cfm" in which case the file must be spelled like that exactly, any other spelling...

November 13, 2000

Immediate Access to Tag Specific Help

Need immediate help with an HTML or CFML tag in Studio? Press F1 at any time to display help about the tag being edited. And newer versions of Studio also provide help for CFML functions this way too. (Applies to: ColdFusion Studio All)

Page 483 of 489 (4890 posts)