<?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: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41410.aspx</link><pubDate>Tue, 09 Jun 2009 18:22:29 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41410</guid><dc:creator>rondata</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41410.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41410</wfw:commentRss><description>&lt;p&gt;use pastebin.com&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41409.aspx</link><pubDate>Tue, 09 Jun 2009 18:19:23 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41409</guid><dc:creator>rondata</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41409.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41409</wfw:commentRss><description>&lt;p&gt;Can you please send me your entire code?&lt;/p&gt;
&lt;p&gt;Rhonda&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41403.aspx</link><pubDate>Tue, 09 Jun 2009 16:56:22 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41403</guid><dc:creator>George</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41403.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41403</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;ok. I included a bit of code from the source file in my previous post. However if I try to use that same technique in my code it doesn&amp;#39;t work in the same manor. I was wondering if anyone knew why? or if they could just give me a working example of how to store a variable. I have tried using the one on the opensocial wiki, the one in the myspace app docs, and now the one from the source code of the teachers pet app but I cant seem to replicate them.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41398.aspx</link><pubDate>Tue, 09 Jun 2009 16:21:11 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41398</guid><dc:creator>rondata</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41398.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41398</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You can view the source of the file by clicking on the app canvas, open the frame in a new window &amp;nbsp; and view the source code.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Rhonda &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41393.aspx</link><pubDate>Tue, 09 Jun 2009 15:19:41 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41393</guid><dc:creator>George</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41393.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41393</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;1. Clicking on those requires a www.fegmail.com username and password( dont know if its supposed to be that way or not)&lt;/p&gt;&lt;p&gt;&amp;nbsp;2. After looking at the source of teachers pet it still does not explain what I am asking about.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote&gt; var req = opensocial.newDataRequest();&lt;br /&gt;&lt;/blockquote&gt;&lt;pre id="line30"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;blockquote&gt;   req.add(req.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;, &amp;quot;pet1&amp;quot;, tempPet));&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;   req.add(req.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;, &amp;quot;pet2&amp;quot;, p1));&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;   req.add(req.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;, &amp;quot;pet3&amp;quot;, p2));&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;   req.add(req.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;, &amp;quot;pet4&amp;quot;, p3));&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;   req.add(req.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;, &amp;quot;pet5&amp;quot;, p4));&lt;br /&gt;&lt;/blockquote&gt;&lt;pre id="line30"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;blockquote&gt;   req.send();&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;pre id="line30"&gt;}&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre id="line30"&gt;Is the code used in the teachers pet canvas soucre to add data&lt;/pre&gt;&lt;blockquote&gt;&lt;pre id="line30"&gt;&amp;nbsp;&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre id="line30"&gt;it seems to work. However when I try to replicate that with:&lt;/pre&gt;&lt;blockquote&gt;&lt;pre id="line30"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line30"&gt;var req = opensocial.newDataRequest();&lt;br /&gt;req.add(&lt;br /&gt;    req.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;, &amp;quot;myKey&amp;quot;, &amp;quot;myValue&amp;quot;),&amp;quot;set_data&amp;quot;);&lt;br /&gt;req.send(set_callback);&lt;br /&gt;&lt;br /&gt;function set_callback(response) {&lt;br /&gt;  if (response.get(&amp;quot;set_data&amp;quot;).hadError()) {&lt;br /&gt;    /* The update failed ... insert code to handle the error */&lt;br /&gt;document.write(&amp;quot;failed&amp;quot;);&lt;br /&gt;&lt;br /&gt;  } else {&lt;br /&gt;    /* The update was successful ... continue execution */&lt;br /&gt;Document.write(&amp;quot;completed&amp;quot;);&lt;br /&gt;  }&lt;br /&gt;}; &lt;/pre&gt;&lt;pre id="line30"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line30"&gt;&amp;nbsp;&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre id="line30"&gt;&amp;nbsp;that does nothing.&lt;/pre&gt;&lt;pre id="line30"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line30"&gt;&amp;nbsp;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41325.aspx</link><pubDate>Mon, 08 Jun 2009 20:22:12 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41325</guid><dc:creator>rondata</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41325.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41325</wfw:commentRss><description>&lt;p&gt;Teacher&amp;#39;s pet source&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;a href="https://www.fegmail.com/exchweb/bin/redir.asp?URL=http://pastebin.com/f33e8684b" target="_blank"&gt;Canvas&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;a href="https://www.fegmail.com/exchweb/bin/redir.asp?URL=http://pastebin.com/f242b5917" target="_blank"&gt;Profile&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;a href="https://www.fegmail.com/exchweb/bin/redir.asp?URL=http://pastebin.com/f26a25cf2" target="_blank"&gt;Home&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41323.aspx</link><pubDate>Mon, 08 Jun 2009 19:50:00 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41323</guid><dc:creator>George</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41323.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41323</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;var req = opensocial.newDataRequest();&lt;br /&gt;req.add(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; req.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;, &amp;quot;myKey&amp;quot;, &amp;quot;myValue&amp;quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;set_data&amp;quot;);&lt;br /&gt;req.send(set_callback);&lt;br /&gt;&lt;br /&gt;function set_callback(response) {&lt;br /&gt;&amp;nbsp; if (response.get(&amp;quot;set_data&amp;quot;).hadError()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* The update failed ... insert code to handle the error */&lt;br /&gt;document.write(&amp;quot;failed&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* The update was successful ... continue execution */&lt;br /&gt;Document.write(&amp;quot;completed&amp;quot;);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;};&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;why does this return &amp;quot;failed&amp;quot; ? It is a direct copy of the example used on the open social wiki...&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41303.aspx</link><pubDate>Mon, 08 Jun 2009 16:23:51 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41303</guid><dc:creator>rondata</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41303.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41303</wfw:commentRss><description>&lt;p&gt;I know that this can be done, because there are apps doing it, we don&amp;#39;t have a code sample for it - that I am aware of. I&amp;#39;ll look into it.&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41302.aspx</link><pubDate>Mon, 08 Jun 2009 16:16:33 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41302</guid><dc:creator>George</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41302.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41302</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;yeah. I dont really need help on designing that part but if your just seeking clarity on what I said then yes exactly.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;//HomeView&lt;/p&gt;&lt;p&gt;&amp;nbsp;[Enter Name Here] [Submit Button]&lt;/p&gt;&lt;p&gt;//End Home View&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;//Profile View&lt;/p&gt;&lt;p&gt;Your Name is: (what ever you put in the Enter Name Here spot on homeview) &lt;/p&gt;&lt;p&gt;//End Profile View &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41301.aspx</link><pubDate>Mon, 08 Jun 2009 16:04:52 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41301</guid><dc:creator>rondata</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41301.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41301</wfw:commentRss><description>&lt;p&gt;Hey, re: the field, you&amp;#39;re talking about an empty field where the user inputs the data.. something like &amp;quot;what do you wat us to call you?&amp;quot; (enter name) and then have that display correct?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41298.aspx</link><pubDate>Mon, 08 Jun 2009 15:20:24 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41298</guid><dc:creator>George</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41298.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41298</wfw:commentRss><description>&lt;p&gt;yeah.&lt;/p&gt;&lt;p&gt;&amp;nbsp;so what I want to do is have an input field on the home view that when the submit button is pressed it stores what ever was in the field. Then on the profile view it reads the variable and (to simplify) prints it out on the screen.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;and I saw the demo&amp;#39;s but like when I C/P them into my &amp;quot;home-view&amp;quot; editor the dont do anything.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41297.aspx</link><pubDate>Mon, 08 Jun 2009 15:11:06 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41297</guid><dc:creator>rondata</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41297.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41297</wfw:commentRss><description>&lt;p&gt;1. Can you give me an example of what you&amp;#39;re trying to do specifically? &lt;/p&gt;
&lt;p&gt;2. Have you seen our sample apps (Demos)?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://wiki.developer.myspace.com/index.php?title=Category:Sample_Applications"&gt;http://wiki.developer.myspace.com/index.php?title=Category:Sample_Applications&lt;/a&gt;&lt;/p&gt;</description></item><item><title>persistant data</title><link>http://developer.myspace.com/Community/forums/thread/41296.aspx</link><pubDate>Mon, 08 Jun 2009 15:06:20 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41296</guid><dc:creator>George</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/Community/forums/thread/41296.aspx</comments><wfw:commentRss>http://developer.myspace.com/Community/forums/commentrss.aspx?SectionID=23&amp;PostID=41296</wfw:commentRss><description>&lt;p&gt;I have two questions.&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. is it possible to set a variable in the homepage view and then access that data in the profile view?&lt;/p&gt;&lt;p&gt;2. I dont understand how to use the persistant data tutorials. I have read all of the posts and they all either point to the same code or use the same example. When I try to use the example it never works. nothing is displayed. Can somebody maybe give me an example of how to write to a variable called name with the value of &amp;quot;George&amp;quot; ? I would appriciate it very much.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance,&lt;/p&gt;&lt;p&gt;-George &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>