Enables or disables JavaScript returns from LmsApi GetJs methods (e.g., GetJsApiLocate).
Public Property Enabled() As Boolean
Use the Enabled property to control whether or not the LmsApi object returns JavaScript from its GetJs methods (e.g., GetJsApiLocate ). The default is Enabled = True (JavaScript is returned). If Enabled = False, the GetJs methods return Nothing. This allows for testing your lesson without LmsApi JavaScript, for example when you're not running it through a Learning Management System (LMS).
The following example assumes the VBTrain.WebTracking namespace has been imported.
[Visual Basic]
Dim apiObject As New LmsApi2() apiObject.Enabled = False
LmsApi2 Class | LmsApi Members