cfclientsettings

Part of the new CF11 mobile development features. This tag is similar to cfprocessingdirective and acts as a compiler directive to include plugins for various features (device detection and device API). You can use this tag to load all the required device detection plugins.

  <cfclientsettings enableDeviceAPI = "true|false" detectDevice = "true|false" deviceTimeout = Number >

  cfclientsettings(enableDeviceAPI = "true|false", detectDevice = "true|false", deviceTimeout = Number);

This tag requires Adobe ColdFusion 11 and up.  Not supported on Lucee, etc.

Attribute Reference

enableDeviceAPI boolean
Default: false

Enable/disable the device API

detectDevice boolean
Default: false

Enable/disable the device detection plugin.

deviceTimeout numeric
Default: 10

The timeout for loading the plugins (in seconds).

Links more information about cfclientsettings

Examples
Sample code using the cfclientsettings tag

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub