Skip to main content
October 16, 2007
Question

Cross domain - pass info from LMS to content

  • October 16, 2007
  • 8 replies
  • 838 views
Has anyone figured out how to get information from the LMS into either a Flash or Captivate file across domains? If you have, please, please, please give me some direction. I need this info primarily for bookmarking and I can't get the info using sendAndLoad across domains.

sendAndLoad works beautifully when the content is on the same server as the LMS but our newest LMS will be hosted externally using a SaaS model and we still want to host our own content.

Most appreciatively,
André
This topic has been closed for replies.

8 replies

Inspiring
October 24, 2007
Hi Notorious D-R-E,

We use this script in the SCORM.htm file (somewhere around line 9) :

if(document.domain != "undefined" && document.domain != "")
{
document.domain = document.domain.substring(document.domain.indexOf('.')+1);
}

We are working with SCORM 1.2.

Also, to save time we modified the source files that Captivate uses so that anyone in our organization that uses Captivate won't have to make the modification every time they publish a solution.

I hope this helps...

TPK
Participating Frequently
October 19, 2007
FYI - you might want to inquire as to the version(s) of the Microsoft XML Parser (MSXML) installed on your server.

Based on the error message, MSXML2 might not be available on your server (I believe they're up to version 6 now). It could be that you just need to change the "2" to a "3" in the code that instantiates the MSXML object and it might work fine.

List of MS XML Parser Versions:

http://support.microsoft.com/kb/269238
October 19, 2007
well it looks as though I'm going to have to spend some time with the firewall people. I'm getting a
msxml3.dll error '80072efd'
whenever I try to send using the MSXML2.ServerXMLHTTP object. It's never easy, is it... ;(

I do think however that this will end up being the solution once the firewall issue is resolved so thank you, thank you jbradley88 for all your insight!
October 17, 2007
jbradley, can you share some of that code? I'm still having some issues and I think it's because the proxy method is scripted for pulling xml data which is not how the AICC data appears. What does the proxy.asp file look like and what does the sendAndLoad function in Flash look like?

Again thanks for the replies!
Participating Frequently
October 17, 2007
Andre,

Do you have the option of launching the AICC content by passing the variables in the URL query string? We did that at my previous job and it worked great.

As for the solution my predecessor created, the code is fairly tangled, so I'll try to post a simplified version. In general, the process works like this:

1) An ASP page does all the data gathering and then outputs the information as XML in the body of the page.

2. The Flash file calls the ASP page and loads the resulting XML.

A generic version of the code is attached below. I hope it helps!
Participating Frequently
October 18, 2007
I think I need to qualify my statements about our legacy application.

It's possible that the only reason our app still works is that it was published as a .EXE to Flash Player 6, which doesn't have the tighter security restrictions of later versions.

When I tested the same application directly in Flash 8, I got security violation warnings. Then again, ours may not be a representative scenario since our app runs locally and loads its content from the web, while most apps would be entirely web-based.
Participating Frequently
October 16, 2007
Nice find! My predecessor at work used both the crossdomain.xml and proxy methods in some old Flash-based content, but I didn't realize the proxy method was actually a "solution" to the cross-domain issue!
October 16, 2007
Thanks again jbradley88. I'm going to try the server side proxy option found through the following link to see if that works. I'll report back if it does. Much apprciated for the link...

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16520&sliceId=2#proxy
October 16, 2007
Thanks for the quick reply jbradley88. We have looked into the crossdomain.xml file and our LMS vendor claims the file is there but things still are not coming across. Before we decided to host our content on our current internally hosted LMS we were having the same issue regardless of where we put the crossdomain.xml file.

Are there any other possible solutions? I'd prefer not to have to write and spend the money to set up an internal database to collect and send the same data that the LMS should provide... Many thanks!
Participating Frequently
October 16, 2007
You may need a crossdomain.xml file in the root of your server.

You can read about that here:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14213