chris-ELM
2/18/2016 - 5:43 PM

This gets the storyline frame xml and parses it ready for use with other functions

This gets the storyline frame xml and parses it ready for use with other functions

function getCourseLayout(docName) {

    {
        if (window.XMLHttpRequest) {
            xhttp = new XMLHttpRequest();
        } else {
            xhttp = new ActiveXObject("Microsoft.XMLDOM");
        }

        xhttp.open("GET", docName, false);
        xhttp.send();
        return xhttp.responseXML;
    }

}
xmlDoc = getCourseLayout("story_content/frame.xml");