Detecting whether AICC or SCORM published

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
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 329 CenarioVR®
- 196 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products