Using regular expressions with the CFPARAM tag in ColdFusion

In a previous example, “Setting the map type on a Google Map using ColdFusion”, we saw how you could set the map type on a Google Map in ColdFusion by using the <CFMAP> tag and setting the type attribute to “map”, “satellite”, “hybrid”, “terrain”, or “earth”.

The following example shows how you can specify a regular expression for the <CFPARAM> tag in ColdFusion by setting the type attribute to “regex” or “regular_expression” and then specifying the pattern attribute to a regular expression that the parameter must match.

Continue reading Using regular expressions with the CFPARAM tag in ColdFusion

Setting a title on a Google Map in ColdFusion 9

In a previous example, “Embedding a Google Map using the CFMAP tag in ColdFusion 9”, we saw how you could embed a Google map in to a ColdFusion 9 project using the <CFMAP> tag.

The following example shows how you can set a title on a Google Map in ColdFusion by using the <CFMAP> tag and setting the Boolean hideBorder attribute to false and the title attribute.

Continue reading Setting a title on a Google Map in ColdFusion 9

Creating a collapsible Google Map in ColdFusion 9

In a previous example, “Embedding a Google Map using the CFMAP tag in ColdFusion 9”, we saw how you could embed a Google map in to a ColdFusion 9 project using the <CFMAP> tag.

The following example shows how you can create a collapsible Google Map in ColdFusion by using the <CFMAP> tag and setting the Boolean hideBorder attribute to false and the collapsible attribute to true.

Continue reading Creating a collapsible Google Map in ColdFusion 9

Creating a calendar using ColdFusion

In a previous example, “Getting started with Dates in ColdFusion”, we saw how you could get started with creating and formatting date values, as well as many other date related functions in ColdFusion.

The following examples show how you can create a couple of simple calendar controls in ColdFusion using some loops and various date functions.

Continue reading Creating a calendar using ColdFusion

Converting a .CSV file to a query and specifying custom column names using the CFHTTP tag in ColdFusion

In a previous example, “Converting a .CSV file to a query using the CFHTTP tag in ColdFusion”, we saw how you could convert an external .CSV (comma separated values) file into a query using the <CFHTTP> tag in ColdFusion and setting the name, url, and firstRowAsHeaders attributes.

The following example shows how you can override the CSV file header row with custom column names for the query by specifying the columns attribute on the <CFHTTP> tag in ColdFusion.

Continue reading Converting a .CSV file to a query and specifying custom column names using the CFHTTP tag in ColdFusion

Just a bunch of ColdFusion examples