ColdFusion CFscript - Call user defined function in script

cfscript - call user defined function (UDFs) in script

cfscriptCallFunction.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfscript tag: How to call user defined function (UDFs) in cfscript</title>
</head>

<body>
<h2 style="color:DodgerBlue; font-style:italic">cfscript example: function call</h2>
<hr width="350" align="left" color="PaleVioletRed" />

<cffunction name="Hello" access="remote">
 <cfargument name="userName" type="string">
    <cfreturn "Hello #userName# !">
</cffunction>

<h3 style="color:SaddleBrown;">
 <cfscript>
  WriteOutput("#Hello("Jenny")#");
    </cfscript>
</h3>

</body>
</html>






More ColdFusion examples