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:
<cfclient>
<cfscript>
function launchCamera()
{
// Capture the image from the device comera
var opt = cfclient.camera.getOptions();
var resp = cfclient.camera.getPicture(opt);
var fileContent = cfclient.file.readFileURIAsBase64(resp);
// Process the image
return;
}