Custom Courseware
eLearning Resources
Clients & Demos
Approach
About Us
Blog
  
Custom Training and eLearning Blog
Corporate Training, Workforce Empowerment, Successful Motivation, Rapid E-Learning
  • Product Training
  • Compliance Training
  • Process Training
  • Sales Training
  • HR Training
  • Safety Training
  • Lean Training
  • Onboard Training
  • Software Training
 
Free Online Course
 

« How to Customize the Questions Functionality using Variables in Lectora?
Is Google Wave a flop? »

How to make Lectora Courses Compatible to Cross LMS?

Submit to Digg Digg it | 
Submit to Reddit Reddit | 
Add To Delicious Delicious | 
Submit to StumbleUpon StumbleUpon | 
Share on Facebook Facebook | 
Tweet This Twitter

Posted by sudheer

Fri, Nov 13, 2009 @ 04:37 AM
Comments

Recently we were working on an assignment where we have to share the Lectora courses from a file server that will be hosted by the course provider, and the courses will be accessible through the client’s LMS using the AICC files (AU files).

A twist in this assignment is that we have to capture the data of the users who are accessing the course on the courseware provider side. That is, the course needs to be compatible to cross domain and cross LMS.

I will walk you through the steps created to make the course work as per the client’s requirement.

Pre-Requisites

  1. ASP Server-Though the LMS were hosted on PHP servers, we have to include a small code build in ASP in the course.
  2. PHP Server-Client LMS and the courseware developer were using PHP server.
  3. ASP Script-To make the course compatible to cross LMS, small code build in ASP was integrated.
  4. LMS-to upload the AICC files.

Lectora Cross-Domains Structure

Explanation for the above Framework

  • On the client side, only the 4 AICC files will be uploaded on the LMS.
  • From the LMS, a request for accessing the course will be sent to the File Server.
  • Course will call the ASP script to develop a connection between the client LMS and the database on course provider. ASP script is responsible for sending data to the client LMS and the course provider database.

Crossdomain.xml

A cross-domain policy file is an XML document that grants a web client to handle data across multiple domains. When a client hosts content from a particular source domain and that content makes requests directed towards a domain other than its own, the remote domain would need to host a cross-domain policy file that grants access to the source domain, allowing the client to continue with the transaction.

(The LMS Server needs to have this file to access the Content Server, where it provides the ability to manually and/or automatically access and/or transfer between two or more differing security domains). Policy files grants read access to data as well as permit a client to include custom headers in cross-domain requests.

The crossdomain.xml file needs to be placed on the root folder of the server. Here is the sample code:

<cross-domain-policy>

<allow-access-from domain=”www.example.com”/>

</cross-domain-policy>

ASP Script for Lectora Cross LMS

Using the following script it allows you to use either an unsigned “Title Manager Applet” or a “JavaScript Title Manager” to perform cross-domain communications.

Save the following script in a “sample.asp” file on the ASP server:

[ASP Script: sample.asp]

<%@ %>

<%

Response.Buffer = True

Dim objXMLHTTP, xml, command, aicc_loc, version, session_id, aicc_data, postbody

aicc_loc=Request.form(”aicc_loc”)

command=Request.form(”command”)

version=Request.form(”version”)

session_id=Request.form(”session_id”)

aicc_data=Request.form(”aicc_data”)

‘ Build the post body string’

postbody = “command=” + command + “&version=” + version + “&session_id=” + session_id

if aicc_data <> “” then

postbody = postbody + “&aicc_data=” + aicc_data

end if

‘ Create an xmlhttp object:’

Set xml = Server.CreateObject(”Microsoft.XMLHTTP”)

‘ Or, for version 3.0 of XMLHTTP, use:’

‘ Set xml = Server.CreateObject(”MSXML2.ServerXMLHTTP”)’

‘ Opens the connection to the remote server.’

xml.Open “POST”, aicc_loc, False

‘Actually Sends the request and returns the data:’

xml.Send postbody

‘Send back the response’

Response.Write xml.responseText

Set xml = Nothing

/*

The below lines of code is to track the “course data” on courseware provider side along with LMS on client side, we need to define the “xml2” variable at the top of the script and add the following code at the end of the script. The script will post the aicc_data to tracking file where it stores the data in a desired format.

Set xml2 = Server.CreateObject(”Microsoft.XMLHTTP”)

xml2.Open “POST”, “Enter your tracking file Path”, False

xml2.setRequestHeader “Content-Type”, “application/x-www-form-urlencoded”

xml2.Send postbody

Response.Write xml2.responseText

Set xml2 = Nothing

*/

%>

Steps to perform in Lectora

  • Add the required “Student Data” in the lectora course before publishing the course.
  • Go to “Publish” and click on “Publishing to AICC/Web-Based”
  • Once it compiles without errors. Click on the “Publish” button.
  • From the “AICC Options” tab,
    • Uncheck the option “The published course will reside on the same network server as the LMS”.
    • This enables the cross-domain redirector. Enter the URL where the “sample.asp” file is located. This will work as an API to communicate between the cross-domains.
  • Check the other checkboxes based on your requirement.
  • Click on “OK” button.
  • Add the student data to the aicc_data in the file “trivantis-titlemgr-aicc.js”. Here are the list of changes to be performed in the code:

Function: TMPr.PutParam = function (grp, param)

After the line,

cparm.add (“\r\nlesson_status=” + this.strAiccLS);

Add the following code,

‘To track “student name”:

cparm.add (“\r\nstudent_name=” + this.strAiccSN);

‘To track “student id”:

cparm.add (”\r\nstudent_id=” + this. strAiccST);

Click Here To Get 30 Minutes Course


Related posts:

  1. How to Translate and Localize Online Courses using Lectora for Rapid eLearning Development

Tags: AICC, Cross LMS, Lectora, Lectora Cross-domains, SCORM Compatible

Leave a Reply

  • SUBSCRIBE
     
    The CommLab India eLearning Blog is all about the latest, most useful and most talked about topics under Corporate Training, Performance and Learning Technology.
    SubscribeTwitterFacebookLinked In
    Subscribe by Email
  •  
  • What is CommLab?

      CommLab India is an eLearning solutions company providing high quality web based training, online course development and eLearning services. We can help you to:
    • 1. Build a Safety Culture in Your Organization.
    • 2. Train Your Employees For Customer Delight.
    • 3. Empower and Achieve Business Goals.
      Get a Free Trial
  •  
  • Most Popular Posts

    • How to make your brainstorming session effective?
    • Improving Public Speaking Skills!
    • Is Google Wave a flop?
    • Enhance Soft Skills!
    • Positive Reinforcement To Improve An Individual's Behavior!
    • What are the Top 5 Qualities to Become a Millionaire?
    • The Humble Storyboard is almost 80 years old. Is it time for its retirement?
    • Change Management Training – Managing Resistance to Change
    • What Are The Real Elearning Standards?
    • What is Your Unique Leadership Vocabulary?

  •  
    Recent Posts
    • 5 Simple Steps to Solve Any Problem!
    • CommLab India Celebrates 10 Years of Success in ELearning Industry
    • Key to Human Performance: Autonomy, Mastery and Purpose vs. Carrot and Stick!
    • Designing Safety Program for Contractors Using Articulate – My First Experience!
    • 11 Ways To Increase Sales!
    CATEGORIES
    • Article
    • CommLab India
    • Corporate Training
    • eLearning Development
    • Future Learning
    • Instructional design
    • Learning Circuits Big Question
    • Learning Technology
    • Management
    • News / Press Release
    • Product Training
    • Social Learning
    CONNECT WITH US
    • CommLab on Facebook
    • CommLab on LinkedIn
    • eLearning Edge LinkedIn Group
    TAGS
    • Authoring Tools
    • Corporate Training
    • eLearning
    • eLearning courses
    • Instructional Designers
    • Learning
    • Online Courses
    • Online training
    • Product Training
    • Sales Training
    • Training
    • Product Training
    • Compliance Training
    • Process Training
    • Sales Training
    • HR Training
    • Safety Training
    • Lean Training
    • Onboard Training
    • Software Training

    © 2009 CommLab India.