These are where they appear (not exactly like you described, and also I thinkI had the wrong object property...).
window.addEventListener("load",function()
{
setTimeout(function()
{
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'assets/js/CPXHRLoader.js';
script.defer = 'defer';
script.onload = function()
{
var lCSSLoaded = false;
var lJSLoaded = false;
function constructDIVs()
{
if(lCSSLoaded && lJSLoaded)
{
initializeCP();
}
}
cpXHRJSLoader.css('assets/css/CPLibraryAll.css',function() {
lCSSLoaded = true;
constructDIVs();
});
var lJSFiles = [ 'assets/js/jquery-1.11.3.min.js','assets/js/CPM.js','assets/playbar/playbarScript.js' ];
cpXHRJSLoader.js(lJSFiles,function()
{
//console.log("js loaded");
var imagesJSONFiles = [ 'dr/imgmd.json' ];
cpXHRJSLoader.loadImagesJSON(imagesJSONFiles,function(imageToJSONPathMap){
cp.imageToJSONPathMap = imageToJSONPathMap;
var imageJSONFiles = [ 'dr/img1.json' ];
if(window.location.protocol.substr(0,4) == "file")
cpXHRJSLoader.preloadURLs(imageJSONFiles, constructDIVs);
lJSLoaded = true;
if(window.location.protocol.substr(0,4) != "file" || !imageJSONFiles.length)
constructDIVs();
});
});
}
document.getElementsByTagName('head')[0].appendChild(script);
},1);
},false);
BTW thanks for all your help
Put the script:
cp.model.data.rtDialog.rtWarningTitle = "Message Box Title";
Just above the constructDIVs(); function.
Since you are editing the JSON you need to do it before Captivate creates the elements in the DOM.
I have this in all of my projects.