Detecting whether AICC or SCORM published

verrelli
verrelli Community Member Posts: 25
This question comes up a lot ... how can you tell if yourcontent was published to AICC or SCORM from within thecontent?Use the following functions:function IsAICCPublished() { var titleMgr = getTitleMgrHandle() if( titleMgr ) {    var parmArr = titleMgr.getElementsByTagName("param")    for( pn = 0; pn < parmArr.length; pn++ ) {      if( parmArr[pn].name == 'aicc' )        return true    } } return false}function IsSCORMPublished() { var titleMgr = getTitleMgrHandle() if( titleMgr ) {    var parmArr = titleMgr.getElementsByTagName("param")    for( pn = 0; pn < parmArr.length; pn++ ) {      if( parmArr[pn].name == 'scorm' )        return true    } } return false}Then just call the appropriate javascript function todetect whichever environment you care about.Tim V
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!