API Calls and the AJAX Toolkit
This toolkit supports all SOAP API calls, as well as runTests() from Apex.
-
Synchronous and Asynchronous Calls with the AJAX Toolkit
The AJAX Toolkit supports both synchronous and asynchronous calls.
-
Property values can be accessed directly or by using a generic
setorgetmethod. -
The AJAX Toolkit returns all data as strings. If needed, you can convert the data into an appropriate datatype by using one of the functions supplied with the returned object.
-
Pass in any context and get it back in the callback method by using the
sourcecontext variable. -
Debugging with the AJAX Toolkit
The AJAX Toolkit provides a debugging window that pops up when certain errors are encountered.