cancel
Showing results for 
Search instead for 
Did you mean: 

Error when using nuxeo in an Iframe (nuxeo.js usage of top.nxContextPath)

Bauke_Roo
Star Contributor
Star Contributor

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.j...

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

0 REPLIES 0