Whatever message this page gives is out now! Go check it out!
invokeCFClientFunction(funcName, arg1, arg2, …., successCallback)Parameter | Description |
funcname | Required. The function to be invoked. |
arguments | Optional. Arguments to pass to the function. |
| succesCallback | The callback handler when the function gets invoked successfully. The successCallback argument is mandatory. If there is no successCallback, use null. |
<cfclientsettings enableDeviceAPI=true>
<cfclient>
<cffunction access="public" name="createfile" returntype="void" >
</cffunction>
</cfclient>
File name : <input id="filename" type="text"/>
<button onclick="invokeCFClientFunction('createfile',null)">Create a file</button>
<br> <b>Result :</b><div id="result"></div>
<script type="text/javascript">
function showresult(obj)
{
return JSON.stringify(obj);
}
</script>