cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco can't load document library in iframe

jiyeyuran
Champ in-the-making
Champ in-the-making
I would like to load share into an iframe on a different domain. It works. The problem is that I cannot get the "document library" to work. There is no "document" tab below "Library"
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
Unfortunately it won't work due to the URL-based "ajax history" component within YUI. The iframe doesn't have permission to access the top-level window (the one that owns the address bar) and so an error is thrown.

This *might* be fixed in YUI 2.9.0 which we'll probably upgrade to before 4.0 is released, but it will still be an unsupported and unrecommended deployment scenario.

Thanks,
Mike

jiyeyuran
Champ in-the-making
Champ in-the-making
thanks for your quick reply. I agree with you. It works if the page including iframe is in the same domain with Alfresco. It may relate to cross domain access.

I found an article:http://softwareas.com/cross-domain-communication-with-iframes, do you think it is useful to solve this problem?

mirabilos
Champ in-the-making
Champ in-the-making
Apparently, YUI 2.9.0 got released; does it contain the fix? (I couldn’t find any indication either way.)
Can I simply replace the YUI in our installation with the newer one, and if so, how?

I’m working on an integration of Alfresco into another platform of ours where I develop on,
I don’t have any experience with Alfresco itself. (Got root, though…)

mirabilos
Champ in-the-making
Champ in-the-making
Also, is there any other way to do this? (Where’s the link to the YUI bugreport?)

I have full control over the page containing the IFRAME – it’s basically just a navigation
header, nothing fancy (not even _any_ ECMAscript inside it), so if there’s an alternative…
(it should be generic enough, though).

The “domain” situation is like this:

Alfresco lies in subone.company.com, the IFRAME lies in subtwo.company.com