Description
ColdFusion automatically determines whether a function call is synchronous or asynchronous. However, if you need to invoke an asynchronous function in a synchronous mode, you can use the invokeCFClientFunction function. The function call just needs to be wrapped around with the invokeCFClientFunction function call. For instance, invokeCFClientFunction(myAsyncFunc(arg1,arg2)).
The invokeCFClientFunction function can be used to invoke both synchronous and asynchronous CFML functions from JavaScript.
History
ColdFusion 11: Added this function