loading external survey via web object - need to grab course ID
Jul 10, 2014
Ok, let's see if I can explain this so it makes sense....
We have a generic survey on our site that I'd like to load at the end of SL courses via a web object - that's the easy part.
What I want to do is grab the course ID on launch, pass it to SL and then attach it to the URL called by the web object. I also need to build this into our templates so that other dev's don't need to add this each time they build a new course.
For the course ID I'm thinking of adding some JS to the index_lms.html file that can grab the ID on launch. If this works I'll have everyone update their default index_lms file for publishing in the application folder (Articulate/Storyline/...)
Next I'll have SL pull the var data from the JS and load it into an SL var (is this necessary per se?)
Finally, I'd like to add that var data to the URL of the web object. Is this even possible?
So, those are puzzle piece and I need a bit of help from the community putting the pieces together... if it's possible.
TIA
2 Replies
Hey Bill,
Couple of challenges here.
OpenWebObject(999, "http://www.google.com", 0, 0, 500, 400, 200, 80);
Parameters:
OpenWebObject(strId, strUrl, nXPos, nYPos, nWidth, nHeight, nSlideXOffset, nSlideYOffset)
Hey Steve thanks for the feedback.
After talking to our web dev, it turns out I was over thinking this a bit. I wanted this to be automated as the CID is created after the published zip is uploaded to the server. We don't have an actual LMS, but the site functions the same basic way. The ID is in the URL and that's where I wanted to pull it from and then push it through to SL. Looks like this is possible from your feedback.
For now, the web dev is going to create a page that we can create a uid for the survey and tack it on to the end of the survey url. Long term I may explore building it the way you mention.
This discussion is closed. You can start a new discussion or contact Articulate Support.