ColdFusion has gone through various language enhancements that will provide a better development experience for ColdFusion developers. The core CFML language enhancements in ColdFusion 11 includes new language constructs, extended tag support, enhanced script functions, and support for new operations.

This document provides an overview on the language enhancements and changes made in ColdFusion 11.

Script support for tags

Using custom tags in scripts

Query tags as ColdFusion functions

JSON serialization

JSON serialization allows you to convert ColdFusion data into a JSON (JavaScript Object Notation) representation of the data. This feature was made available in ColdFusion 8.

Member functions for data structure

Support for Elvis operator (?:)

Passing array index to callback functions in ArrayEach

Currently, ColdFusion supports passing objects in callback function. Now, from ColdFusion 11,  you can pass the index of an array to the callback function. See ArrayEach.

Support for ListEach

A new function, ListEach, has been introduced.  See ListEach.

Support for QueryGetRow

A new function, QueryGetRow, has been introduced.  See QueryGetRow.

Preferences for built-in functions

Support for database queries

You can start using the <cfquery> tag in client-side CFML just like how you are currently using it in server-side CFML code. Note that not all of the <cfquery> features are supported in this release.

See Mobile Application Development

Added script support for cfimport based prefix custom tag. Now you can use prefix based custom tag in script block without any issue.

<cfscript>
  cfimport(taglib=" ../importFolder/" prefix="myTags");
  myTags:customTag();
</cfscript>

customTag.cfm
<cfoutput > Output from custom tag </cfoutput>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy