TIP: Common JS Interface/SWF Frameset
I've been struggling for the last two days trying out figure out why a SWF-based SCORM course was breaking when published to Blackboard.
Initially thought it was due to Blackboard adding code to my files in the content area. Which did cause a minor problem.
Come to find out after much digging, the culprit was in the Standard.js file on line 128: var lEventHandlerWin = window.parent;
As soon as the file is run in an environment with an actual parent window present, the Common JS Interface breaks.
The fix was to eliminate the parent: var lEventHandlerWin = window;
Voila, I'm back in business and don't have to recode my widget or the external JavaScript.
Haven't seen too many posts/if any at all about the CJSI not working, but hopefully this will help someone else down the road.
