<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developer.myspace.com/Community/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>JavaScript/HTML - Container</title><link>http://developer.myspace.com/Community/forums/23.aspx</link><description>Discuss the OpenSocial container interface for MySpace.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20910.1126)</generator><item><title>Re: appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/40332.aspx</link><pubDate>Tue, 19 May 2009 16:40:07 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:40332</guid><dc:creator>Test User</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/40332.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=40332</wfw:commentRss><description>&lt;p&gt;note: For 0.7 and 0. use: &lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp; var param_value = gadgets.views.getParams().appParams;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; //or directly &lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp; var a_value = gadgets.views.getParams().a;&lt;/span&gt; 
&lt;/p&gt;&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/9465.aspx</link><pubDate>Tue, 06 May 2008 18:58:42 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:9465</guid><dc:creator>Jeremy</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/9465.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=9465</wfw:commentRss><description>&lt;p&gt;Yeah, Jeff, it really should. The code examples above are from the old 0.6 OpenSocial implementation, which is being yanked. Use the 0.7 version, from the gadgets specs.&lt;/p&gt;</description></item><item><title>Re: appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/9461.aspx</link><pubDate>Tue, 06 May 2008 18:44:24 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:9461</guid><dc:creator>Jeff</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/9461.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=9461</wfw:commentRss><description>should this be using the gadgets stuff instead of the opensocial stuff?  http://developer.myspace.com/Community/forums/p/521/2026.aspx#2026 shows something similar but it uses gadgets code.  am i missing some clear direction you folks have provided somewhere about what should be used and what should not?</description></item><item><title>Re: appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/9080.aspx</link><pubDate>Wed, 30 Apr 2008 23:33:35 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:9080</guid><dc:creator>Guitarati</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/9080.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=9080</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Community/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Chris:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;The following code currently works (slightly modified from some code that Chad provided earlier):&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function rnt(surface_name){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;var surface_objs = opensocial.getEnvironment().getSupportedSurfaces();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;var surface_obj;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;//for(var i = 0; i &amp;lt; surface_objs.length; i++){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;for(var s in surface_objs){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(surface_objs&lt;img src="http://developer.myspace.com/Community/emoticons/emotion-56.gif" alt="Sleep" /&gt; &amp;amp;&amp;amp; surface_objs&lt;img src="http://developer.myspace.com/Community/emoticons/emotion-56.gif" alt="Sleep" /&gt;.getName() === surface_name){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;surface_obj = surface_objs&lt;img src="http://developer.myspace.com/Community/emoticons/emotion-56.gif" alt="Sleep" /&gt;;break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;opensocial.requestNavigateTo(surface_obj, {a: &amp;quot;b&amp;quot;});&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function getparams1() {&lt;br /&gt;
alert(opensocial.getEnvironment().getParams()[&amp;quot;a&amp;quot;]);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;button onclick=&amp;#39;rnt(&amp;quot;profile.left&amp;quot;);&amp;#39;&amp;gt;rNT Profile&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;#39;rnt(&amp;quot;home&amp;quot;);&amp;#39;&amp;gt;rNT Home&amp;lt;/button&amp;gt; &lt;br /&gt;
&amp;lt;button onclick=&amp;#39;rnt(&amp;quot;canvas&amp;quot;);&amp;#39;&amp;gt;rNT Canvas&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;#39;getparams1()&amp;#39;&amp;gt;Params1&amp;lt;/button&amp;gt;&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;I&amp;#39;ve copied and pasted the above code to OSTool editor but I get the following error on clicking any of the buttons it creates (that is, whenever requestNavigateTo is called). Also, getParams is returning undefined instead of the param passed across the surface. I&amp;#39;m using Firefox.&lt;br /&gt;&lt;p&gt;remote_relay_url has no properties&lt;br /&gt;http://api.msappspace.com/OpenSocial/references/ifpc001.js&lt;br /&gt;Line 176 &lt;/p&gt;&lt;p&gt;What am I missing? &lt;img src="http://developer.myspace.com/Community/emoticons/emotion-42.gif" alt="Confused" /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/8035.aspx</link><pubDate>Fri, 18 Apr 2008 16:23:32 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:8035</guid><dc:creator>WildFireWeb</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/8035.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=8035</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;ve discovered that using Safari, the JSON params are mangled and so don&amp;#39;t work.&lt;/p&gt;&lt;p&gt;Double quotes end up being encoded automatically by safari, and that breaks the JSON.&lt;/p&gt;&lt;p&gt;Trying single quotes causes a myspace error.&lt;/p&gt;&lt;p&gt;No Quotes apparently doesn&amp;#39;t pass the parameters.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/4065.aspx</link><pubDate>Thu, 13 Mar 2008 18:02:41 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:4065</guid><dc:creator>&amp;lt;script&amp;gt;alert('f');&amp;lt;/script&amp;gt;</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/4065.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=4065</wfw:commentRss><description>&lt;p&gt;The following code currently works (slightly modified from some code that Chad provided earlier):&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function rnt(surface_name){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;var surface_objs = opensocial.getEnvironment().getSupportedSurfaces();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;var surface_obj;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;//for(var i = 0; i &amp;lt; surface_objs.length; i++){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;for(var s in surface_objs){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(surface_objs&lt;img src="http://developer.myspace.com/Community/emoticons/emotion-56.gif" alt="Sleep" /&gt; &amp;amp;&amp;amp; surface_objs&lt;img src="http://developer.myspace.com/Community/emoticons/emotion-56.gif" alt="Sleep" /&gt;.getName() === surface_name){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;surface_obj = surface_objs&lt;img src="http://developer.myspace.com/Community/emoticons/emotion-56.gif" alt="Sleep" /&gt;;break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;opensocial.requestNavigateTo(surface_obj, {a: &amp;quot;b&amp;quot;});&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function getparams1() {&lt;br /&gt;
alert(opensocial.getEnvironment().getParams()[&amp;quot;a&amp;quot;]);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;button onclick=&amp;#39;rnt(&amp;quot;profile.left&amp;quot;);&amp;#39;&amp;gt;rNT Profile&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;#39;rnt(&amp;quot;home&amp;quot;);&amp;#39;&amp;gt;rNT Home&amp;lt;/button&amp;gt; &lt;br /&gt;
&amp;lt;button onclick=&amp;#39;rnt(&amp;quot;canvas&amp;quot;);&amp;#39;&amp;gt;rNT Canvas&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;#39;getparams1()&amp;#39;&amp;gt;Params1&amp;lt;/button&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;--------------&lt;/p&gt;&lt;p&gt;Note for 0.8 container you must use&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp; var param_value = gadgets.views.getParams().appParams;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; //or directly &lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp; var a_value = gadgets.views.getParams().a;&lt;/span&gt; 
&lt;/p&gt;&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/3845.aspx</link><pubDate>Wed, 12 Mar 2008 18:42:30 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:3845</guid><dc:creator>crushspot.com</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/3845.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=3845</wfw:commentRss><description>&lt;p&gt;This just started working for me -- it seems the appParams come in JSON-encoded in the GET to the IFrame as &amp;#39;p&amp;#39;&lt;/p&gt;</description></item><item><title>Re: appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/3808.aspx</link><pubDate>Wed, 12 Mar 2008 16:51:51 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:3808</guid><dc:creator>SodaHead.com</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/3808.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=3808</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m encountering this as well.&lt;/p&gt;&lt;p&gt;requestNavigateTo works, but gadgets.views.getParams() returns an empty object ({}).&amp;nbsp; I stepped through the gadgets code and on line 1325 it attempts to grab the params via the &amp;#39;view-params&amp;#39; key (if (urlParams[&amp;quot;view-params&amp;quot;]) {), but according to the debugger the params are storred under the key &amp;#39;p&amp;#39; (looking at the resulting iframe url confirms this).&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any idea when this can be fixed?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>appParams and requestNavigateTo</title><link>http://developer.myspace.com/Community/forums/thread/3798.aspx</link><pubDate>Wed, 12 Mar 2008 16:32:13 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:3798</guid><dc:creator>Quizzes</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/3798.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=3798</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to pass some params from my profile surface to my canvas (which is an external iframe), but the parameters are not making it through to my server.&lt;/p&gt;&lt;p&gt;Is this going to be fixed before launch? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>