Anyone have any suggestions on how to do the below on facebook? <%= link_to_function "Add Task" do |page| page.insert_html :bottom, :task, :partial => ''email_form'', :object => Task.new end %> Thanks --ken -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080501/f7b6ef63/attachment-0001.html>
That is cool, I didn''t even realize that you could do that in rails. So the issue here is that you can''t use Prototype within the FBJS sandbox. So what I would do is look at the javascript that gets created here and then define your own methods that do the same thing using FBJS. In this case you will want define Insertion.Bottom. Dave On Wed, Apr 30, 2008 at 10:28 PM, Ken Schroeder <schroeder.ken at gmail.com> wrote:> Anyone have any suggestions on how to do the below on facebook? > <%= link_to_function "Add Task" do |page| > page.insert_html :bottom, :task, :partial => ''email_form'', :object > => Task.new > end %> > > > Thanks --ken > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080501/3b22a867/attachment.html>
I would love some patches to make Facebooker.js better imitate Prototype. Hopefully this won''t be too hard to write! Mike On May 1, 2008, at 11:12 AM, David Clements wrote:> That is cool, I didn''t even realize that you could do that in rails. > > So the issue here is that you can''t use Prototype within the FBJS > sandbox. So what I would do is look at the javascript that gets > created here and then define your own methods that do the same thing > using FBJS. > > In this case you will want define Insertion.Bottom. > > > Dave > > On Wed, Apr 30, 2008 at 10:28 PM, Ken Schroeder <schroeder.ken at gmail.com > > wrote: > Anyone have any suggestions on how to do the below on facebook? > <%= link_to_function "Add Task" do |page| > page.insert_html :bottom, :task, :partial => > ''email_form'', :object => Task.new > end %> > > > Thanks --ken > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Mike, I''d love to work on this. Is there any documentation for what currently does and does not work? BJ Clark Inigral On May 1, 2008, at 10:28 AM, Mike Mangino wrote:> I would love some patches to make Facebooker.js better imitate > Prototype. Hopefully this won''t be too hard to write! > > Mike > > On May 1, 2008, at 11:12 AM, David Clements wrote: > >> That is cool, I didn''t even realize that you could do that in rails. >> >> So the issue here is that you can''t use Prototype within the FBJS >> sandbox. So what I would do is look at the javascript that gets >> created here and then define your own methods that do the same >> thing using FBJS. >> >> In this case you will want define Insertion.Bottom. >> >> >> Dave >> >> On Wed, Apr 30, 2008 at 10:28 PM, Ken Schroeder <schroeder.ken at gmail.com >> > wrote: >> Anyone have any suggestions on how to do the below on facebook? >> <%= link_to_function "Add Task" do |page| >> page.insert_html :bottom, :task, :partial => >> ''email_form'', :object => Task.new >> end %> >> >> >> Thanks --ken >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
Not really. The only thing that works is very basic Ajax (i.e. link_to_remote) Mike On May 1, 2008, at 11:33 AM, BJ Clark wrote:> Mike, > I''d love to work on this. Is there any documentation for what > currently does and does not work? > > BJ Clark > Inigral > > >-- Mike Mangino http://www.elevatedrails.com