SmartBuilder and Server-side Scripts

For issues related to delivery of content to end-learners e.g. LMS tracking via SCORM and delivery of content offline.

Moderator: Nav

SmartBuilder and Server-side Scripts

Postby Nav » Tue Mar 31, 2015 5:26 pm

Communicating with a Server-side Script can be very helpful. That script can store information into a database, send an email, or generate a PDF. The author will have to create (or get someone to help create) that Script and then host it.

If you expect to send and receive information, you'll need to host the script and the lesson on the same server, and will use the Server Communication object (built into the lesson, like the Page Controller).

If you just need to send information, you can host the script on a different server from the lesson, and you will use the URL Data object (found in the "More objects" call out in the Object Palette).

Here are few videos that walk you through the basic process of how to use SmartBuilder to communicate with a Server-side script (using the Server Communication object, and sending and receiving information).
Part 1 -
Part 2 -
Part 3 -

Example lesson from video -

Here's the text of the example storing and retrieving a value of "userID" (same for any data that you want to store and retrieve):

save - ... userID=123
load - ... ame=userID

You don't need to send one piece of information at a time, either, you can send lots (e.g., ... ity2=false - you just have to add more setParameters responses in the action).

Let us know if you have any questions. Note that we can't really help you develop the script, or help with hosting it, because every server is a little different. It's best to work with your IT department to get the script working before trying to integrate it with SmartBuilder.

- Nav
Posts: 866
Joined: Mon Nov 05, 2007 2:58 pm

Return to Delivery (LMS Tracking / SCORM / Offline Delivery)

Who is online

Users browsing this forum: No registered users and 1 guest

Not able to open ./cache/data_global.php