Question
How do you do use cfajaxproxy with setSyncMode()?
I found lots of examples using asynchronously, but I can't find any examples using synchronously? Does anyone know how to do that?
Using the adobe example below, how would you change from asynchronously to synchronously? I added in setSyncMode(), but doesn't seem to work.
// Use an asynchronous call to get the employees for the
// drop-down employee list from the ColdFusion server.
var getEmployees = function(){
// Create an instance of the proxy.
var e = new emp();
e.setSyncMode(); // I added here
// If you set a callback handler for the proxy, the proxy's calls
// are asynchronous.
e.setCallbackHandler(populateEmployees);
e.setErrorHandler(myErrorHandler);
// The proxy getEmployees function represents the CFC
// getEmployees function.
e.getEmployees();
}
Thanks,
Richard
