Ben Forta

Blog

June 1, 2002

The Default Locale

ColdFusion uses locales to work with localized content and data. ColdFusion MX defaults the locale used by the JVM (and thus usually the operating system), unlike prior ColdFusion which defaulted to English (or Japanese, if that version of ColdFusion was being used). (Applies to: ColdFusion MX)

May 31, 2002

Dockable Debug Window

ColdFusion debug output appears at the bottom of generated pages. Right? Not anymore. While the "classic" format mimics the behavior of earlier ColdFusion's, switch to the new "dockable" format (in the ColdFusion Administrator) to use a popup DHTML based tree view in a window that can either float...

May 30, 2002

Setting Page Timeouts Explicitly

The default ColdFusion page timeout value is specified in the ColdFusion Administrator. Prior versions of ColdFusion allowed this value to be overridden using a URL parameter. In ColdFusion MX this value can be overridden using the tag and a new attribute named REQUESTTIMEOUT. The old...

May 29, 2002

Cached Pages Timeout

Pages cached with will persist until the cache is explicitly flushed unless the TIMESPAN attribute is specified. TIMESPAN takes a number of days (or partial days, such as ".5" for half a day). The CreateTimeSpan() function may be used to create the time span value. (The TIMEOUT attribute used in...

May 28, 2002

Access the Page Context

The new GetPageContext() function returns an objects providing access to the internal Java PageContext. Use this function to invoke Java methods like setAttribute() and getLocale(), as well as to execute include and forward methods. (Applies to: ColdFusion MX)

May 27, 2002

Checking XML Data

Working with XML? Three new functions will be of use to you. IsXMLDoc() checks whether or not an object is valid XML, IsXMLElement() checks whether or not a specified parameter is an XML element, and IsXMLRoot() checks whether or not a specified parameter is the document root. (Applies to:...

May 26, 2002

User Defined Function Named Arguments

Arguments (parameters) passed to a UDF are usually passed sequentially - unnamed and positional in a comma delimited list (like the way built in functions are called). UDF arguments may also be passed in a comma delimited list of name=value pairs, allowing for arguments to be passed in any order...

May 25, 2002

Keep Local UDF Variables Local

Variables defined within a User Defined Function are of type VARIABLES. This means that a simple (in a tag based UDF) can overwrite other variables. To keep local variables truly local, use the VAR prefix, as in . This way "name" will persist for the duration of the UDF processing, and will not set...

May 24, 2002

Specify UDF Return Types

User Defined Functions return data, both based UDF's and tag based UDF's. An advantage of tag based UDF's is that they allow UDF return types to be specified. By defining the type in ColdFusion can validate the data returned using . (Applies to: ColdFusion MX)

May 23, 2002

Specify UDF Argument Types

defines arguments in User Defined Functions (as well as ColdFusion Component methods). At minimum defines the arguments and specifies whether or not they are required (optionally specifying default values). In addition, can (and should) be used to specify valid data types so that parameter type...

Page 428 of 490 (4896 posts)