VBTrain.Net Documentation

LmsApi: Error Checking JavaScript

Most of the LmsApi2 GetJs functions (such as GetJsIntialize and GetJsSetValue) have a boolean checkForError parameter. If this parameter is set to True, the JavaScript code that the GetJs function returns will include logic to check for an error after calling the specified API function.

The error checking JavaScript will do the following if an error is detected:

If error checking code is included but no error occurs, the above variables are set to the following:

If error checking code is not included, any errors from the API function calls are ignored.

See Also

LmsApi2 Class | LmsApi Members