AICC cross domain code is there... how do I activate it at publish time?
I'm using Captivate 8, and testing some CMI (aka LMS) systems using the AICC export functions. Our POST target is not on the same domain, so it is a Cross-Domain request.
I've noticed that the AICC default template has this code in the index.html file:
function defineCustomAICCCommunication()
{
// override this function from the SCORM Driver to handle the custom comms
//aghose: this one is in AICCComm
window.CustomAICCCommunication = function(strAICCURL, strPostData, strRequestType, strCallBack)
{
WriteToDebug('in MakeHttpPostCall');
WriteToDebug('Details of Call:');
WriteToDebug("AICCURL:"+String(strAICCURL));
WriteToDebug("Post Data:"+strPostData);
WriteToDebug("RequestType:"+strRequestType);
WriteToDebug("CallBack:"+strCallBack);
WriteToDebug("---End Details of Call---");
//Uncomment this line to run across domain for HTML5
//document.getElementById('AICCPostRouter_HTML').contentWindow.makeHTTPPost(String(strAICCURL), strPostData, strRequestType, strCallBack);
return;
}
}
If I uncomment the lines dealing with HTML5, it works fine. I understand that I can edit the files before publish, but I don't want to tell our customers that. I've searched in the tool for a way to toggle cross-domain HTML5 requests for AICC during publishing, but I haven't found one. Is there a way to toggle cross-domain posts for HTML5 AICC data from inside Captivate during publish (without needing a manual edit)?