I am trying to figure out how to make 

setSyncMode 

work. Every test I have tried it does not stop the javascript from executing 
while waiting for server response. 

what my code is: 
var _userInfo = ''; 

function editUser(id) 
{ 
getUser(id); 
alert( _userInfo );<--- this fires first (but should be second) 
} 

function getUser(id) 
{ 
myAdminCFC.setCallbackHandler( rUserI ); 
myAdminCFC.setSyncMode(); 
myAdminCFC.getUser(id); // this calls the CFC method 
} 

function rUserI(r) 
{ 
alert(r); <---- this should fire 1st. 
_userInfo = r; 
} 

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to