LMSGetValue returning an undefined value?
March 19, 2009 12:00 AM
Hi all.First of all, I know very very little about JavaScript. I have submitted SCORM courses to a client and they are having issues with them loading into blank pages. These courses worked with their previous LMS without a hitch. With their new LMS, there is this issue.Here are the implementation support's responses:Email #1:_________________I apologize in the delay getting back to you on the location of the SCORM API. After extensive research into this issue I have discovered the following. Our API is located : 1)walking up the parents first 2)then walk up the window.opener 3)Start step 1 again. I have more results on the course that you have sent me. The module called 'Module 2' (Was opening the course to a blank page.) This course is throwing a javascript exception as the course content is attempting to read a field that is not initialized when it's being read. I suggest having your Content provider add error checking code to the LMSGetValue to handle 'undefined' return values. In Purchasing Overview, I'm still not seeing it connect to our SCORM API and would again suggest you have the content developers search for the API as described above. __________________Ok.. so I didnt get that at all. So i asked my client to ask for him to describe it in more layman's terms. Here goes..Email #2:__________________The course content is attempting to read a value via the SCORM API (LMSGetValue ) that is not initialized. (As it is not initialized, in JavaScript this means there value is set to 'undefined'.) The course content's throws a JavaScript exception (it tried to use 'undefined' in an illegal way). Once an exception is thrown the rest of the JavaScript on the page will not run including the JavaScript used to load the course content. The JavaScript error causes the page not to load. Your content developer should check the value returned via LMSGetValue, before attempting to use it. I hope this better describes the issue. You can show the content developer the error being generated by turning on 'Display a notification about every JavaScript error.'. You will see the error occurs in the course contents JavaScript. This is likely the case with the new course you sent. You can leave JavaScript notifications on and view that course as well to see if it also has JavaScript errors. Please let me know if this is a clearer explanation. If you have further questions please try to be specific and I will do my best to explain the issue. ____________________________Does this make any sense to anyone? Where do I go from here?Here are my scorm export settings:- 1.2 Conformant- Presented in separate window- Report test/survey to LMS- Prompt to restore last viewed location- Using JavaScript title ManagerEdited By: OQSG on 2009-3-19 10:14:47
Discussions have been disabled for this post