Ben Forta

Blog

March 17, 2001

Portable Yet Operating System Specific

Most ColdFusion code that you write should be fully portable (assuming you pay attention to things like case-sensitivity in file names and paths). But what if you need to write operating system specific code (perhaps to use COM, or to execute different statements on Windows and Linux)? Is it...

March 16, 2001

Create an Application.cfm - Always

Application.cfm file is a special ColdFusion file - if present it is automatically included and processed with every requested page. ColdFusion applications do not need this file, but you should always create one in your application's root directory even if you don't intend to use it. Why? Because...

March 15, 2001

Flexible Date Data Entry

Be more flexible when prompting users for dates. Instead of requiring rigid formats, allow users to enter dates as strings and then use the ParseDateTime() function to parse them. ParseDateTime() takes a string containing a date (supporting all sorts of formats) and returns a valid date time object...

March 14, 2001

Safely Generating XML Data

Generating XML data? Your text may contain characters that may not be used within XML text (for example, the less than symbol, the ampersand, and quotes). These characters must be escaped so that they do not interfere with XML data processing. To be safe, any and all data within an XML document...

March 13, 2001

Inline Mathematical Operations

ColdFusion variables may be incremented or decremented using simple assignments, for example, . But tag based assignments can't be used within functions (you can't call a tag inside a function call), and so ColdFusion also provides two functions that perform the same operations using function...

March 12, 2001

Truly Dynamic SQL

All ColdFusion developers know that CF variables may be used in SQL statements, and most have used them in WHERE clauses as well as in INSERT and UPDATE statements. But what many developers do not know is that any part of the SQL string may be created using variables, in fact, the entire SQL...

March 11, 2001

Clearing Cached Queries

Looking for a way for force a refresh of cached queries? Here's an undocumented CFML tag that may help - . Call this tag and every cached query (in all applications and for all datasources) will be cleared forcing them to be refreshed when next used. But, as this is an undocumented tag, it could...

March 10, 2001

WAP Users - Beware of $

WAP content may not contain dollar signs ($) as this character has special meaning within WML code - it is used to prefix WML variables. To escape dollar signs properly within your ColdFusion code use the Replace() statement like this: Replace(var, "$", "$$", "ALL"). (Applies to: ColdFusion All)

March 9, 2001

Making Tag Data Accessible To Child Tags

ColdFusion supports the creation of Custom Tag families - parent and child tags that together form a complete tag set. CFML includes tags and functions that are used to bridge the gap between these tags so that data can be shared (or published) as needed. But one behavior that baffles most...

March 8, 2001

Sending HTML E-Mail

allows you to send e-mail formatted as HTML. Many developers find this feature to be very compelling as it allows for sophisticated formatting and layout, and even embedded forms. However, as a rule, do not generate HTML e-mail unless you know that the recipient's mail client can support it (many...

Page 471 of 489 (4885 posts)