Newer Version Available
API Call Syntax in the AJAX Toolkit
SOAP API calls use slightly different syntax in AJAX Toolkit, depending on whether the
call is synchronous or asynchronous.
Synchronous Calls
Syntax:
Example:
Asynchronous Calls
Syntax:
Example:
In this example, onSuccess is the callback function, which will return the results when they are ready.
See Core Calls in the SOAP API Developer’s Guide for call usage, arguments, and best practices, but use the AJAX Toolkit syntax for methods you embed in JavaScript.