I've integrated VSSCORM (http://www.vsscorm.net/
) into my CMS - it's basic but it works perfectly on my local test server (MAMP). I should also mention the SCORM packages are all tested on scormcloud to confirm they are correct first. The problem occurs on the Linux/Apache server (shared hosting).
is not a function
strResult = SCORM_objAPI.LMSInitialize
If this happens, a browser cache clear and reload, it will work again every time.
My first thought was I could simply try to stop the browser caching:
Added to the <head>...
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
Then also tried adding to htaccess...
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
None of which makes any difference - the problem remains and the cache clear still does the trick.