Cross Domain javascript errors in OpenSocial app - Build2024-03-28T22:57:13Zhttp://build.ning.com/forum/topics/cross-domain-javascript-errors?commentId=6308082%3AComment%3A14531&x=1&feed=yes&xn_auth=noI had this issue, there was s…tag:build.ning.com,2011-12-02:6308082:Comment:145312011-12-02T05:18:30.585ZMark Vhttp://build.ning.com/profile/MarkV
<p>I had this issue, there was some typo</p>
<p><span class="st"><em>gadgets</em>.<em>window</em>.<em>adjustHeight</em>()</span></p>
<p><span class="st">was missing a s after gadget</span></p>
<p>I had this issue, there was some typo</p>
<p><span class="st"><em>gadgets</em>.<em>window</em>.<em>adjustHeight</em>()</span></p>
<p><span class="st">was missing a s after gadget</span></p> Thanks Devin. Yeah data requ…tag:build.ning.com,2010-11-12:6308082:Comment:6292010-11-12T14:41:02.000ZHari Karam Singhhttp://build.ning.com/profile/HariKaramSingh
<p>Thanks Devin. Yeah data requests are fine with makeRequest, but there are more issues with cross domain...</p>
<p> </p>
<p>For example reading the query string of page's url via <strong>window.parent.location.search</strong> causes an access error, thus preventing having more than one url-based startup states for the application.</p>
<p> </p>
<p>Also, I've noticed that the OS native method, <strong>gadget.window.adjustHeight(),</strong> also throws JS errors due to cross domain…</p>
<p>Thanks Devin. Yeah data requests are fine with makeRequest, but there are more issues with cross domain...</p>
<p> </p>
<p>For example reading the query string of page's url via <strong>window.parent.location.search</strong> causes an access error, thus preventing having more than one url-based startup states for the application.</p>
<p> </p>
<p>Also, I've noticed that the OS native method, <strong>gadget.window.adjustHeight(),</strong> also throws JS errors due to cross domain security...</p>
<p><br/> <cite>Devin said:</cite></p>
<blockquote cite="http://build.ning.com/forum/topics/cross-domain-javascript-errors?commentId=6308082%3AComment%3A623&xg_source=msg_com_forum#6308082Comment623"><div><p>To get around the cross domain issues with OpenSocial, you can use the <em><span class="nx">gadgets</span><span class="p">.</span><span class="nx">io</span><span class="p">.</span><span class="nx">makeRequest</span></em> <span class="nx">function. Checkout the <a href="http://developer.ning.com/docs/opensocial/1.0/overview/external-resources.html" target="_blank">Accessing External Resources</a> page. <br/></span></p>
</div>
</blockquote> To get around the cross domai…tag:build.ning.com,2010-11-12:6308082:Comment:6232010-11-12T01:37:47.000ZDevinhttp://build.ning.com/profile/Devin
<p>To get around the cross domain issues with OpenSocial, you can use the <em><span class="nx">gadgets</span><span class="p">.</span><span class="nx">io</span><span class="p">.</span><span class="nx">makeRequest</span></em> <span class="nx">function. Checkout the <a href="http://developer.ning.com/docs/opensocial/1.0/overview/external-resources.html" target="_blank">Accessing External Resources</a> page. <br/></span></p>
<p>To get around the cross domain issues with OpenSocial, you can use the <em><span class="nx">gadgets</span><span class="p">.</span><span class="nx">io</span><span class="p">.</span><span class="nx">makeRequest</span></em> <span class="nx">function. Checkout the <a href="http://developer.ning.com/docs/opensocial/1.0/overview/external-resources.html" target="_blank">Accessing External Resources</a> page. <br/></span></p>