Unable to find API_1484_11

Topics: Developer Forum, User Forum
Oct 31, 2008 at 8:33 AM
My Scorm object contains only a html SCO object. I open the scorm from SLK which opens it in a scorm player in a new window.

From my html resource, I am calling a JavaScript to get a handle to the API. I try to find win.API_1481_11 using the regular window.opener -> window.parent mechanism that everybody seems to be using. But I am unable to find the API. What am I missing?

Given below is my javascript code. Any help is much appreciated.

function findAPI (win)
{
    while( (win.API_1484_11 == null) &&
              (win.parent != null) && 
              (win.parent != win) )
    {
        win = win.parent;
    }

    return win.API_1484_11;
}

function getAPI()
{
    var theAPI = findAPI(window);
    
    ......
}
Oct 31, 2008 at 11:28 AM
My scorm package was 1.2 and I am trying to open 2004 api. Duh! Fixed now.