<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error when using nuxeo in an Iframe (nuxeo.js usage of top.nxContextPath) in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/error-when-using-nuxeo-in-an-iframe-nuxeo-js-usage-of-top/m-p/319119#M6120</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I'm trying to use Nuxeo [5.8] in an Iframe, but the gadgets are not loading.&lt;/P&gt;
&lt;P&gt;An error occurs when opening the window in the Iframe:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;"Error: Permission denied to access property 'nxContextPath'"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The JavaScript function calls the following command:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;gadgets.nuxeo.URLBASE=top.nxContextPath+"/site/gadgetDocumentAPI/";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I was able to trace it to the nuxeo.js file: &lt;A href="http://fisheye.nuxeo.com/browse/nuxeo-opensocial/nuxeo-opensocial-features/src/main/js/nuxeo/nuxeo.js?r=f365ffb0f158fad809a909667a89a5c1d67148b2" target="test_blank"&gt;http://fisheye.nuxeo.com/browse/nuxeo-opensocial/nuxeo-opensocial-features/src/main/js/nuxeo/nuxeo.js?r=f365ffb0f158fad809a909667a89a5c1d67148b2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;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)&lt;/P&gt;
&lt;P&gt;Is there a way I can change this myself?&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Thanks in advance,
Bauke Roo&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2014 09:19:40 GMT</pubDate>
    <dc:creator>Bauke_Roo</dc:creator>
    <dc:date>2014-10-28T09:19:40Z</dc:date>
    <item>
      <title>Error when using nuxeo in an Iframe (nuxeo.js usage of top.nxContextPath)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-when-using-nuxeo-in-an-iframe-nuxeo-js-usage-of-top/m-p/319119#M6120</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I'm trying to use Nuxeo [5.8] in an Iframe, but the gadgets are not loading.&lt;/P&gt;
&lt;P&gt;An error occurs when opening the window in the Iframe:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;"Error: Permission denied to access property 'nxContextPath'"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The JavaScript function calls the following command:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;gadgets.nuxeo.URLBASE=top.nxContextPath+"/site/gadgetDocumentAPI/";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I was able to trace it to the nuxeo.js file: &lt;A href="http://fisheye.nuxeo.com/browse/nuxeo-opensocial/nuxeo-opensocial-features/src/main/js/nuxeo/nuxeo.js?r=f365ffb0f158fad809a909667a89a5c1d67148b2" target="test_blank"&gt;http://fisheye.nuxeo.com/browse/nuxeo-opensocial/nuxeo-opensocial-features/src/main/js/nuxeo/nuxeo.js?r=f365ffb0f158fad809a909667a89a5c1d67148b2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;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)&lt;/P&gt;
&lt;P&gt;Is there a way I can change this myself?&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Thanks in advance,
Bauke Roo&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:19:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-when-using-nuxeo-in-an-iframe-nuxeo-js-usage-of-top/m-p/319119#M6120</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-10-28T09:19:40Z</dc:date>
    </item>
  </channel>
</rss>

