Make a callback with data synchronously
The next example makes a callback to the server with two numbers (49583 and 83924).
The server-side method waits 5 seconds and then returns the sum of the numbers.
The syntax is:
The page 'freezes' until it receives an answer from the server. Click to test:
In the next div, a dot is added every 0.5 seconds.
You will see this stops after you make the callback, until an answer from the server is received.
You may also check the asynchronous example
to see the difference.