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
- 4.8K All Categories
- 6 New Feature Releases
- The Training Arcade®
- Arcades™
- 123 ✫ Announcements
- 9 ✪ Contests
- 34.1K eLearning Brothers® Products
- 33.6K Lectora®
- 31.6K Lectora Discussions
- 1.9K Lectora Feature Requests
- 71 Lectora User Groups
- 16 Asset Library
- 10 AssetLibrary Discussions
- 6 AssetLibrary Feature Requests
- 301 CenarioVR®
- 176 CenarioVR Discussions
- 125 CenarioVR Feature Requests
- 36 Rockstar Learning Platform®
- 24 Rockstar Learning Platform Discussions
- 12 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 114 CourseMill®
- 107 CourseMill Discussions
- 44 ReviewLink®
- 32 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 2 The Training Arcade®
- 1 The Training Arcade Discussions
- 1 The Training Arcade Feature Requests
- 10 Additional Learning Products
- 2 Adobe®
- 4 Articulate®
- 2 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 930 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 11 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 545 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 21 Visual Design
- 331 Web Accessibility
- 1.2K ♪ The Green Room
- 7 ♡ Community Feedback
- 7 Community Tips