Example Calls Using the Ajax Toolkit

The next two sections contain examples of synchrononous and asynchronous calls.

The AJAX Toolkit provides a debugging window that pops up when certain errors are encountered.

You can invoke logging explicitly using the log() method. For example, if you wanted to display the debugging window with the value of a variable at a certain point in your client application, you could add this line at the appropriate place:

The AJAX Toolkit samples in the following sections use log(). To use the samples in the following sections, add this simple version of the log code before the first use of log:

You can make log() as sophisticated as you wish.