Permission Denied

347 views
Skip to first unread message

JSM

unread,
Aug 25, 2009, 1:30:02 PM8/25/09
to eLearning Technology and Development
I've tried using the SCORM 1.2 wrapper -- both with Flex and the
simple HTML version. I get a permission denied JS error. It appears to
be related to this line:

while ((!win.API && !win.API_1484_11) &&

Any ideas?

Thanks!

Paul Colombo

unread,
Aug 25, 2009, 1:40:56 PM8/25/09
to elearning-technolo...@googlegroups.com
Your content server and LMS are on 2 different domains.

Add this to your course page before anything else:

document.domain = "lmsdomain.com"

Philip Hutchison

unread,
Aug 25, 2009, 2:06:05 PM8/25/09
to elearning-technolo...@googlegroups.com
To add to Paul's reply, browser security prevents a script in a document/window from examining a different document/window if it's in a different domain.

In e-learning situations, this frequently happens if your course content is being served from an external server and not from the LMS that launched it.

A quick Google search will provide you with a ton of tips on how to deal with this issue.

 - philip

JSM

unread,
Aug 25, 2009, 2:09:58 PM8/25/09
to eLearning Technology and Development
Thanks for the quick response! I need it as I'm under pressure from a
customer to prove my course is SCORM compliant.

I put document.domain = "lmsdomain.com" immediately after the <script
type="text/javascript"> in scorm1.2.html. I didn't get the line 77
error. Instead I got a line 64 error. I'm using the ADL test suite for
testing, and I'm not getting a connect. HELP!

Philip Hutchison

unread,
Aug 25, 2009, 2:33:00 PM8/25/09
to elearning-technolo...@googlegroups.com
paul meant to put whatever the domain is for your LMS.

if your lms' domain is mydomain.com, then you'd use "mydomain.com"

if your course files are on a server but you're testing locally using the ADL suite, i suggest using a *local* copy of the course for testing instead.  it could eliminate the problem without having to change your code.

JSM

unread,
Aug 25, 2009, 2:41:12 PM8/25/09
to eLearning Technology and Development
Thanks again for your help!

Here's my setup:

Win2003 server
ADLSuite run directly from C: drive folder, not set up as a site and
served.
Course content downloaded directly from your SimpleTest example.
In the ADLSuite, SCO Run-Time test, I point to your Scorm1.2.html.

So what domain do I use in "document.domain="? Should I set up the
ADLSuite as a site & serve it?
> > > --http://twitter.com/pcolombo- Hide quoted text -
>
> - Show quoted text -

Philip Hutchison

unread,
Aug 25, 2009, 3:11:20 PM8/25/09
to elearning-technolo...@googlegroups.com
I don't know exactly what needs to be done for your setup, as I'm unfamiliar with your system. If you're using the ADL Test Suite, you may want to do the testing locally on a standard desktop (not a server) to avoid any complications.

I know the ADL Suite has very specific instructions for how it should be set up and run, including placing XSD files on your desktop.  Once you get the test suite running, you can point to a local copy of your course files. If you're testing a local copy of your course in the ADL test suite, you shouldn't need to add the document.domain code; it should work as-is.

Alternately, you could try testing your course in the SCORM Test Track provided by Rustici Software.  It's free, more robust than the ADL's test suite, and includes good diagnostic feedback.
http://scorm.com/scorm-solved/test-track/

- philip
Reply all
Reply to author
Forward
0 new messages