pipwerks / scorm-api-wrapper

The pipwerks SCORM API Wrapper
http://pipwerks.com
362 stars 125 forks source link

Tutorial #31

Closed nathanqueija closed 6 years ago

nathanqueija commented 7 years ago

Do you have any tutorials how to use this api? THanks

grpaiva commented 7 years ago

First of all: this is freaking awesome! I'm the tech guy here at an online school and we'll need to create SCORM packages for some of our courses. Tried captivate (yikes) and then found this beautiful wrapper.

As @nathanqueija I miss some tutorials on more structured courses with chapters and stuff like that. But I'll figure this out using Javascript.

Also a more detailed documentation with examples. For instance, what are the returned values for cmi.core.lesson_status, you know, like an API documentation?

I'm new to SCORM and will start deep diving on this now. But I'm willing to help you guys with anything. To build a better documentation, examples, etc.

Cheers!

grpaiva commented 7 years ago

Actually, this documentation here is helping me a lot:

https://pipwerks.com/laboratory/scorm/api-wrapper-javascript/

grpaiva commented 7 years ago

@nathanqueija Just for the record. Using pipwerk's pipwerks.SCORM.get(), pipwerks.SCORM.set() and pipwerks.SCORM.save() you can do pretty much everything based on SCORM'S Run-time reference. For example, getting and setting lesson_location:

this.scorm = pipwerks.SCORM; // shortcut

this.scorm.version = "1.2";

if(this.scorm.init()){

    var location = this.scorm.get("cmi.core.lesson_location");

    if(location !== ""){
        console.log(location);
        // do something with previous location
    }

    this.scorm.set('cmi.core.lesson_location', 'anything you want to set as location');

    this.scorm.save();
}
atmonello commented 6 years ago

You guys had any luck using this API? I have followed this guide found on Pipwerks site: https://pipwerks.com/2008/05/08/adding-scorm-code-to-an-html-file/

But it doesn't seem to work. When I open my HTML file on the browser, it's not even giving any errors (it should alert that it can't connect to the LMS), and trying to run it into SCORM Cloud just leads to a blank page (page title says "Page not found", but I'm not even redirecting the course to any other page).

Any help would be greatly appreciated!

(And BTW, 100% brazilians on this issue! 😄)

pipwerks commented 6 years ago

This is not a bug report, closing issue

docvirt commented 6 years ago

@grpaiva Can you upload your example? Thanks