<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Problem with FBJS examples' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/59/topics/346</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Problem with FBJS examples posted by Mike Mangino @ Fri, 04 Apr 2008 12:49:32 -0000</title>
      <description>&lt;p&gt;What does the generated page look like? Is Rails generating a valid &lt;span class="caps"&gt;URL&lt;/span&gt; for facebooker.js?&lt;/p&gt;


	&lt;p&gt;Facebooker.js should be both in public/javascripts and in the plugins. It is copied during the install process.&lt;/p&gt;


	&lt;p&gt;You could paste the code into a script tag.&lt;/p&gt;


	&lt;p&gt;You don&amp;#8217;t need prototype for Ajax. Facebook provides and Ajax object which facebooker.js wraps to make it look like Prototype.&lt;/p&gt;


	&lt;p&gt;Some features are available with version 1.1 of &lt;span class="caps"&gt;FBML&lt;/span&gt; that aren&amp;#8217;t under version 1.0. It shouldn&amp;#8217;t make a difference in this case.&lt;/p&gt;


	&lt;p&gt;If you can post the generated code, that might help figure out what is happening.&lt;/p&gt;</description>
      <pubDate>Fri, 04 Apr 2008 12:49:32 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:346:2544</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/346</link>
    </item>
    <item>
      <title>Problem with FBJS examples posted by Oleg Polyakov @ Tue, 01 Apr 2008 01:27:39 -0000</title>
      <description>&lt;p&gt;Greetings,&lt;/p&gt;


	&lt;p&gt;I really enjoy reading your book, though, I have several things that I need to be fixed asap.&lt;/p&gt;


	&lt;p&gt;I have a requirements to be able to display certain fields based on the drop down selection, which needs to make an Ajax call.&lt;/p&gt;


	&lt;p&gt;I tried including the following lines into my layouts/application.erb file.&lt;/p&gt;


&amp;lt;fb:fbml version="1.1"&gt;&lt;br /&gt;&amp;lt;&lt;span&gt;= render :partial=&amp;gt;&amp;#8221;layouts/css&amp;#8221; %&amp;gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;= javascript_include_tag &amp;#8220;facebooker&amp;#8221; %&amp;gt;

	&lt;p&gt;However, I keep getting an error that it cannot load a static resource.&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s things I am not clear:&lt;/p&gt;


	&lt;p&gt;1) I see facebooker.js under public/javascripts and under Rails plugin directory for facebooker.  Is it supposed to be like this?&lt;/p&gt;


	&lt;p&gt;2) If facebooker.js is all I need to make Ajax calls, can I simply paste this whole code under &lt;/p&gt;


	&lt;p&gt;3) Do I still need prototype.js to use the Ajax object or it somehow comes through the facebook platform?&lt;/p&gt;


	&lt;p&gt;4) Is there difference between &amp;lt;fb:fbml version="1.1"&gt; and simply &amp;lt;fb:fbml&gt;&lt;/p&gt;


	&lt;p&gt;Regards,&lt;br /&gt;Oleg&lt;/p&gt;</description>
      <pubDate>Tue, 01 Apr 2008 01:27:39 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:346:2520</guid>
      <author>Oleg Polyakov</author>
      <link>http://forums.pragprog.com/forums/59/topics/346</link>
    </item>
  </channel>
</rss>
