I have a form that I want to do a few things. -do an Effect.SlideOut on a div -replace the text in a div with different text -update the database and add a new div later in the document. How do call all of these (there is only one :complete or :update) Thanks in advance. -- Posted via http://www.ruby-forum.com/.
Hi Brian, Brian Zimmer wrote:>I have a form that I want to do a few things. > > -do an Effect.SlideOut on a div > -replace the text in a div with different text > -update the database and add a new div later in the document. > > How do call all of these (there is only one :complete or :update)Best way is to use RJS. I recommend Cody Fauser''s new "RJS Templates for Rails" PDF. You can find the book at http://www.oreilly.com/catalog/rjsrails/ Ten bucks and a few hours working through the tutorial and you''ll know how to do the above and a whole bunch more. hth, Bill
Hi Bill, I wanted to know how this RJS will be helpful in solving my issue. I have a site that is developed on RoR, and the home page contains a section where the recent posts of the respective blog will be loaded into. This rss transaction taking its own time to load till then this section will be blank. How do I avoid this, any help on this is welcome! Thanks in advance, Sumanth. Bill Walton wrote:> Hi Brian, > > Brian Zimmer wrote: > > >>I have a form that I want to do a few things. >> >> -do an Effect.SlideOut on a div >> -replace the text in a div with different text >> -update the database and add a new div later in the document. >> >> How do call all of these (there is only one :complete or :update) > > Best way is to use RJS. I recommend Cody Fauser''s new "RJS Templates > for > Rails" PDF. You can find the book at > http://www.oreilly.com/catalog/rjsrails/ Ten bucks and a few hours > working through the tutorial and you''ll know how to do the above and a > whole > bunch more. > > hth, > Bill-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Sumanth Ambati wrote:> Hi Bill, > I wanted to know how this RJS will be helpful in solving my issue. > I have a site that is developed on RoR, and the home page contains a > section where the recent posts of the respective blog will be loaded > into. This rss transaction taking its own time to load till then this > section will be blank. > How do I avoid this, any help on this is welcome! > Thanks in advance, > > Sumanth. > > > > > > Bill Walton wrote: >> Hi Brian, >> >> Brian Zimmer wrote: >> >> >>>I have a form that I want to do a few things. >>> >>> -do an Effect.SlideOut on a div >>> -replace the text in a div with different text >>> -update the database and add a new div later in the document. >>> >>> How do call all of these (there is only one :complete or :update) >> >> Best way is to use RJS. I recommend Cody Fauser''s new "RJS Templates >> for >> Rails" PDF. You can find the book at >> http://www.oreilly.com/catalog/rjsrails/ Ten bucks and a few hours >> working through the tutorial and you''ll know how to do the above and a >> whole >> bunch more. >> >> hth, >> BillHi Brian I can confirm that this small PDF (50 pages) is actually a ''must have'' to discover and then use RJS.. then you''ll ba able to perform these actiosn and much more... take your time in replicating Cody''s example and a couple of hours later you''re ready to go.. kad -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---