Detecting whether AICC or SCORM published
April 21, 2005 12:00 AM
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
Discussions have been disabled for this post