Quantcast
Channel: Adobe Community : Unanswered Discussions - Adobe Captivate
Viewing all articles
Browse latest Browse all 23155

Captivate 7: Close box "x" issue with iFrame. Internal Server reporting

$
0
0

Starting to work with Captivate 7 and progress with layout and internal server reporting features.

 

However, I've come across a bit of a problem regarding the functionality of the close/ "x" button in the project, the close button in the lower right of the player bar for the project.  It works when I view the project as HTML5 output in the browser directly from Captivate 7, but in my Web App I view the presentation as an iFrame within my web app in the browser.  The close button doesn't do anything and I suspect that there is some sort of conflict with a javascript or AJAX call.  The involved code is this:

 

 

It isn't clear to me what function this call and what the appropriate method is to exit gracefully from the presentation/iframe.  Ideally, if the user exits prematurely I do what to call the internal LMS server, which is working for the most part with my setup, so that the user data is captured.

 

Seems like this function in the cp.js handles the server reporting:  (BTW, the HTML5 solution seems to be very Javascript intensive.  Kind of wondering how that affects performance on slower devices and how that impacts security issues)

 

cp.InternalServerAdapter.prototype.PostQuizResults = function() {

    if (this.m_resultsAlreadyPosted) return;

    cp.log("Post results");

    this.m_resultXML = "<Course>\r\t";

    var lShowInputDialog = false;

    if (cp.vm) lShowInputDialog = !cp.vm.hasOwnProperty("cpQuizInfoStudentID") || cp.vm.getVariableValue("cpQuizInfoStudentID") == "";

    if (lShowInputDialog) {

        this.CreateInputDialog();

        this.m_inputDialog.show()

    } else {

        this.m_StudentName = cp.vm.hasOwnProperty("cpQuizInfoStudentName") ? cpQuizInfoStudentName : "";

        this.m_StudentID = cpQuizInfoStudentID;

        this.SendDataToURL()

    }

    cpCmndShowPlaybar = false;

    cpLockTOC = true;

    this.dataModified_bln = false

};

 

I did pass in cpQuizInfoStudentID and cpQuizInfoStudentName to the iFrame and that seems to bypass the dialog for the user to input these variables and it then sends data to the internal server if the user exits normally, i.e. finishes the presentation and quizzes.

 

I actually would like to have the option of not showing the "data successfull submitted" dialog if the send was successful, although that is useful when coding the app.


Viewing all articles
Browse latest Browse all 23155

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>