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 - http://screencast.com/t/bRISdStR6G
Part 2 - http://screencast.com/t/p3lrVISY6P1
Part 3 - http://screencast.com/t/4u1vCJioc

Example lesson from video - http://examples.suddenlysmart.com/echotest/player.html

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 - http://examples.suddenlysmart.com/simpl ... userID=123
load - http://examples.suddenlysmart.com/simpl ... ame=userID

You don't need to send one piece of information at a time, either, you can send lots (e.g., http://examples.suddenlysmart.com/simpl ... 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
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 2 guests

cron
Not able to open ./cache/data_global.php