Connecting to a Plateau/SuccessFactors LMS with AICC cross domain communication from our LMS

380 views
Skip to first unread message

Rick Williams

unread,
Oct 26, 2014, 8:46:09 PM10/26/14
to elearning-technolo...@googlegroups.com
We host content on our LMS and our customer would like us to connect to their learning portal which is the Plateau LMS and need to connect to it using AICC for cross domain communication. Does anyone have some examples of the javascript needed to do this? The puts puts and the gets?

Thanks in advance!
Rick

matthew zupek

unread,
Oct 26, 2014, 11:04:00 PM10/26/14
to elearning-technolo...@googlegroups.com

You can't do cross domain with Java script cleanly... you can relay data with a server side script

--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Meyer

unread,
Oct 27, 2014, 7:18:09 AM10/27/14
to elearning-technolo...@googlegroups.com
Actually, you can do cross-domain JavaScript if their server has enabled the headers for CORS (cross-origin resource sharing.) You can learn more here: http://en.m.wikipedia.org/wiki/Cross-origin_resource_sharing
It's supported by nearly all browsers now, with a little browser detection and alternate code needed for IE8 and 9.
If they don't support CORS, you'll need to have a server-side relay in the language of your choice (.NET, PHP, Java, etc.) that will pass through the requests from the browser to the other server.
I'm not aware of any simple example code, especially something modern. You might be able to find something functional on aicc.org, but it's probably several years old.
I'm about to start working on the exact same integration, so let me know if you find anything helpful.
Thanks,
Ryan

Sent from my iPhone

Rick Williams

unread,
Oct 27, 2014, 12:15:11 PM10/27/14
to elearning-technolo...@googlegroups.com
Thanks for the Input.

We have looked at the AICC online documentation and it is dated. They do support the javascript with AICC since that is one of the few reliable cross domain communication protocols available. We had a problem with JQuery in cross domain and are now switching to javascript and hoping that someone here had already had success connecting to them.

Ryan Meyer

unread,
Oct 27, 2014, 12:56:16 PM10/27/14
to elearning-technolo...@googlegroups.com
Your response is a little confusing. JQuery and Javascript are the same thing; JQuery is just a library written in Javascript itself. If it didn't work in one because of cross-domain issues, it won't help to rebuild in the other.
Javascript ONLY works cross-domain if the server that you're making calls to explicitly supports the CORS headers I mentioned earlier.
If they don't, you'll have to have some server-side scripts on YOUR server that can act as a go-between your content and their server.
Hope that helps!
Ryan

Sent from my iPhone
--

matthew zupek

unread,
Oct 27, 2014, 1:20:46 PM10/27/14
to elearning-technolo...@googlegroups.com
I deal a lot with AICC communication, this article is what got me on feet. Hope it helps! 
This is better than the docs on the AICC website.

Rick Williams

unread,
Oct 28, 2014, 11:55:44 AM10/28/14
to elearning-technolo...@googlegroups.com
I understand that but the JQueryand JavaScript are really the same thing but the JQuery library has issues with cross domain in some cases and it is easier to trouble shoot problems with Javascript because it is written so straightforward. The no transport error returned just keeps you in the dark when trying to connect to an outside LMS.

Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and-development+unsubscribe@googlegroups.com.

Rick Williams

unread,
Oct 28, 2014, 11:59:03 AM10/28/14
to elearning-technolo...@googlegroups.com
Thanks for the PDF! If you deal with AICC communication quite often I hope you can help us in our effort to connect to this LMS.

Thanks Again!


On Monday, October 27, 2014 1:20:46 PM UTC-4, mzupek wrote:
I deal a lot with AICC communication, this article is what got me on feet. Hope it helps! 
This is better than the docs on the AICC website.
On Mon, Oct 27, 2014 at 11:56 AM, Ryan Meyer <ryan.e...@gmail.com> wrote:
Your response is a little confusing. JQuery and Javascript are the same thing; JQuery is just a library written in Javascript itself. If it didn't work in one because of cross-domain issues, it won't help to rebuild in the other.
Javascript ONLY works cross-domain if the server that you're making calls to explicitly supports the CORS headers I mentioned earlier.
If they don't, you'll have to have some server-side scripts on YOUR server that can act as a go-between your content and their server.
Hope that helps!
Ryan

Sent from my iPhone

On Oct 27, 2014, at 12:15 PM, Rick Williams <rick...@gmail.com> wrote:

Thanks for the Input.

We have looked at the AICC online documentation and it is dated. They do support the javascript with AICC since that is one of the few reliable cross domain communication protocols available. We had a problem with JQuery in cross domain and are now switching to javascript and hoping that someone here had already had success connecting to them.

On Sunday, October 26, 2014 8:46:09 PM UTC-4, Rick Williams wrote:
We host content on our LMS and our customer would like us to connect to their learning portal which is the Plateau LMS and need to connect to it using AICC for cross domain communication. Does anyone have some examples of the javascript needed to do this? The puts puts and the gets?

Thanks in advance!
Rick

--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and-development+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and-development+unsubscribe@googlegroups.com.

matthew zupek

unread,
Oct 28, 2014, 12:02:44 PM10/28/14
to elearning-technolo...@googlegroups.com

You can use an http analyzer such as fiddler to debug your requests.

To unsubscribe from this group and stop receiving emails from it, send an email to elearning-technology-and...@googlegroups.com.

Ryan Meyer

unread,
Oct 28, 2014, 12:18:50 PM10/28/14
to elearning-technolo...@googlegroups.com
This page gives some detail on how to get CORS working in JQuery by explicitly enabling it (jQuery.support.cors = true;) and by including a separate script which uses the older IE9 method (http://www.dylanbarlett.com/2013/08/ajax-requests-to-amazon-s3-with-cors-or-jsonp/)


You'll definitely want to use an HTTP Analyzer as Matthew suggests to make sure those CORS headers are set in the responses from the server. Otherwise, you're out of luck from the beginning and they would have to support an alternate method such as a JSONP service.

-Ryan


Rick Williams

unread,
Oct 28, 2014, 1:25:05 PM10/28/14
to elearning-technolo...@googlegroups.com
Thanks! We will give these a shot and let you know if we succeed or get some feedback at least.


On Sunday, October 26, 2014 8:46:09 PM UTC-4, Rick Williams wrote:
Reply all
Reply to author
Forward
0 new messages