Code samples to build a mobile application

A simple example

Building mobile applications using the ColdFusion Mobile Platform is easy. Your code will be as simple as:

<cfset myvar = "Hello World">

Note the new ColdFusion tag, <cfclient> that will be used for mobile development (see The new <cfclient> tag). The ColdFusion content available in the <cfclient> block gets translated into corresponding HTML/JavaScript content.

A more complex example

Let us launch the device camera:


function launchCamera()
// Capture the image from the device comera
var opt =;
var resp =;
var fileContent = cfclient.file.readFileURIAsBase64(resp);
// Process the image



Community posts and tutorials


Get help faster and easier

New user?