February 2nd, 2006
AjaxCFC – the Client Side
As promised, here is a quick rundown of the client side part of AjaxCFC.
The first part in the client side of AjaxCFC is to include the javascript files.
_ajaxConfig = {'_cfscriptLocation':'echoTest.cfc', '_jsscriptFolder':'js'};
_ajaxConfig will store the location of the listener CFC and location of the “js” folder which is included in the ajax.zip file that comes with AjaxCFC. The use of _cfscriptLocation variable is optional as you may specify the CFC location directly in the Ajax call.
You will have an ajax calling function and a call-back function; however, none of them are mandatory, because depending on your needs you may not need to know the result of your call, or you may not need to enclose your ajax call in a function.