Sudhi Kulkarni wrote: > Hi, > > I am trying to use the following lines in my RJS and have a problem > > page.insert_html :bottom,:list,"<ul>" > #some conditions checks > page.insert_html :bottom,:list,"<li>Hello item</li>" > #some more code to add <li>s > page.insert_html :bottom,:list,"</ul>" >
Hi, Why don't you try using jquery.js. Works great with rails too and is simpler than prototype.js. Reference - http://jimneath.org/2008/06/18/using-jquery-with-ruby-on-rails/ Thanks, Manasi -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

