VBTrain.Net Documentation

LmsApi2 Class

For a list of all members of this type, see LmsApi Members.

VBTrain.WebTracking.LmsApi2

Description

The VBTrain LmsApi is designed to help you create SCORM™ 1.2 or SCORM™ 1.3 compliant ASP.NET lessons (SCORM compliant lessons are also called Sharable Content Objects or SCOs). You can call LmsApi methods to generate the JavaScript a lesson needs to communicate with a SCORM compliant Learning Management System (LMS). You then use the .NET RegisterClientScriptBlock method to insert the JavaScript into your page.

The LmsApi also has methods that let you set and get custom properties of an LmsApi object.

Example

The following example assumes the LmsApi2 Class has been included as a reference and that the VBTrain.WebTracking namespace has been imported.
[Visual Basic]

   Private Sub InitLmsApi() Dim apiObject As LmsApi
   = New LmsApi2() Dim

   js As String
   apiObject.Enabled = True
   apiObject.ScormVersion = ScormVersionEnum.Version_13
   
   'locate
   js = apiObject.GetJsApiLocate()
   Me.RegisterClientScriptBlock("apiLocate", js)

   'initialize
   js = apiObject.GetJsInitialize(False, True)
   If js <> "0" Then		  ' not yet initialized
      Me.RegisterClientScriptBlock("apiInitialize", js)
   End If
End Sub

Requirements

Namespace: VBTrain.WebTracking

Assembly: VBTrainLmsApi2.dll

See Also

LmsApi Members | Advanced Distributed Learning (ADL) | Navigation Sample | Question Sample