That is just it, they aren't running Synchronous (unless I am getting it backwards). I want to send a request to a CFC and then wait for my answer, and then continue my processing. In the code case, I send my request, via getUser(id), which calls the function that fires the CFC and then the return is captured. Back when I was using CFCAjax it was waiting for the return, now that I moved to CFAJAXPROXY it is not waiting, no matter what I set (setAsyncMode or setSyncMode)
and to quote the site: setSyncMode - Sets the mode of network operation to be synchronized. This means the page will wait until the server responds with the result ----- Original Message ----- From: "Matthew Woodward" <[email protected]> To: [email protected] Sent: Tuesday, March 13, 2012 1:38:03 AM Subject: Re: [OpenBD] setAsyncMode vs setSyncMode On Mon, Mar 12, 2012 at 10:21 PM, < [email protected] > wrote: myAdminCFC.setCallbackHandler( rUserI ); myAdminCFC.setSyncMode(); Unless I'm missing something, setting a callback handler and setting things to run synchronously are mutually exclusive. You'd use a callback handler to fire a method when you get a response from an asynchronous call (since you don't know when you'll get a response). If things are running in sequence there's no need for a callback handler because you're waiting for a response before proceeding. Based on that and your code the behavior seems to be correct to me. -- Matthew Woodward [email protected] http://blog.mattwoodward.com identi.ca / Twitter: @mpwoodward Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments. http://www.gnu.org/philosophy/no-word-attachments.html -- online documentation: http://openbd.org/manual/ google+ hints/tips: https://plus.google.com/115990347459711259462 http://groups.google.com/group/openbd?hl=en -- online documentation: http://openbd.org/manual/ google+ hints/tips: https://plus.google.com/115990347459711259462 http://groups.google.com/group/openbd?hl=en
