AJAX Page - Synchronous Callback

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:

        ob_post.AddParam("number1", 49583);
        ob_post.AddParam("number2", 83924);
        ob_post.post(null, "myServerMethod");
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.