+ Start a Discussion
Arun KArun K 

Visualforce javascript remoting synchronous

I am using javascript remoting to get data from apex method.

My problem is javascript remoting is working Asynchronously.I want to work it as synchronously.

Please suggest me.
Gaurav KheterpalGaurav Kheterpal
JS remoting by behavior is asynchronous. Depending on what your use case it, you should have the appropriate logic in your callback handler to ensure that the correct sequence of operations is executed.

You can refer to these threads which discussed this in more detail - http://salesforce.stackexchange.com/questions/18918/is-it-possible-to-make-remote-action-asynchronous