Modify HTML wrapper and standard.js files still possible?
Greetings,
I have been working with Adobe Captivate for a number of years. After version 5.5 Adobe changed the manner in which Captivate published its files for SCORM 1.2. In previous versions I was able to utilize a few modifications to Captivate's default.htm or custom.html and standard.js files to add functionality.
I have worked with several different LMS systems and have found that the cross-domain script (script #2) to be very useful for launching SCORM content hosted on a sub-domain within an organization and still have it track in the LMS.
The other script (script #1) openBrWindow, was useful in displaying additional, optional content not embedded in the Captivate project file but housed either locally or (if I use a full URL) housed in another domain (no tracking necessary here).
In the standard.js file I would add these two javascripts and have them function automatically, or call them when I needed them.
Imbed in standard.js
Script #1 to open a browser window on top of a project window. The purpose was to display ancillary documents for illustration or added information. Documents separate from the Captivate project content.
function openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
// For 'featuers' use these calls separated by a comma, use no spaces.
// toolbar=yes,
// location=yes,
// status=yes,
// menubar=yes,
// scrollbars=yes,
// resizable=yes,
// width=numberofpixels,
// height=numberofpixels,
Script #2 was designed to allow cross-domain content to properly track in the LMS
<!-- <script language="JavaScript">
//work around cross-domain scripting
if(document.domain != "undefined" && document.domain != "")
{
document.domain = document.domain.substring(document.domain.indexOf('.')+1);
}
</script> -->
I also modified the custom.htm file and used it rather than the default.htm file so I could eliminate blank-space padding that wrapped the content when it displayed in an LMS browser window.
I'm finding that with Captivate 6, 7, 8 and 9 source files that these scripts do not work as they did, and that I am unable to have a custom.htm file to use when I want to to display a project without blank space around the content.
Is it still possible for me to use these scripts still? Am I implementing them correctly? Do they need modification? Is there different functionality in the later versions of Captivate that will accomplish much the same thing?
Thank you,
Tim Kern
