function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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 -