CFC proxy class objects
Another use of CFAJAXProxy is to extend the remote methods of a CFC into the currently loaded AJAX page on the browser. This function is not binding, but rather an actual proxy. This means that we will extend the functionality of the remote methods right into the web page without writing extensive code. We will be converting our math web page to support multiplication and division. We could do this easily in the browser. But we want to show the power of extending CFCs, so we will add these two functions in our CFC and work with them from there:
<cfajaxproxy bind="javascript:doCalc({calcType@click})">
<cfajaxproxy cfc="serverMath" jsclassname="remoteMath">
<cfform id="myForm" format="html">
Enter Two Numbers.<br />
<cfinput type="text" name="number1" id="number1"><br />
<cfinput type="text" name="number2" id="number2"><br />
<label for="calcAdd">
<cfinput type="radio" value="add"
name...