Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little more example code would be useful. #16

Open
trevski opened this issue Sep 21, 2018 · 2 comments
Open

A little more example code would be useful. #16

trevski opened this issue Sep 21, 2018 · 2 comments

Comments

@trevski
Copy link

trevski commented Sep 21, 2018

    window.API_1484_11.on("Terminate", function () {
        var simplifiedObject = window.API_1484_11.cmi.toJSON();
        alert(JSON.stringify(simplifiedObject));
    });

is working fine

however I can't seem to read in values from the LMS.

    window.API_1484_11.on("GetValue.cmi.learner_id", function (CMIElement, value) {
        value = '123';
    });

    window.API_1484_11.on("Initialize", function () {
        alert('initialize SCORM');
    });

I am getting the "initialize SCORM" alert OK but the learner_id is not being returned on terminate.

Obviously I am doing something stupid.

@xob
Copy link
Collaborator

xob commented Sep 21, 2018

There already is example code for initial values.

@sijuthankachan
Copy link

i m new to scorm. i have scorm zip file. how i make it play in html and integrate the simplify-scorm?
can you share the html file sample file with player and simplify-scorm integartion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants