As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi there,
I'm trying to use Nuxeo [5.8] in an Iframe, but the gadgets are not loading.
An error occurs when opening the window in the Iframe:
"Error: Permission denied to access property 'nxContextPath'"
The JavaScript function calls the following command:
gadgets.nuxeo.URLBASE=top.nxContextPath+"/site/gadgetDocumentAPI/";
I was able to trace it to the nuxeo.js file: http://fisheye.nuxeo.com/browse/nuxeo-opensocial/nuxeo-opensocial-features/src/main/js/nuxeo/nuxeo.js?r=f365ffb0f158fad809a909667a89a5c1d67148b2
I also found that instead of using "top.nxcontextPath" it is better to use 'NXGadgetContext.clientSideBaseUrl' (http://permalink.gmane.org/gmane.comp.cms.nuxeo.scm/65899)
Is there a way I can change this myself?
Edit 14-11-2014 I found that top should be replaced with parent. Also a lot of links in gadgets (opensocial and social collaboration) contain target="_top" it would be better if target="_parent" would be used.
Thanks in advance, Bauke Roo