I had problem with #JS template method, so I just use the inline javascript page.replace_html. The JS template wouldn't update my DIV. Have you gotten the js template method working?
On Tue, Oct 12, 2010 at 5:48 AM, Samnang <[email protected]> wrote: > Hi all, > > I start looking in unobtrusive javascript functionality in Rails 3. I > couldn't make any different when to use RJS vs pure Javascript > template. > > For example: > #RJS: > page.replace_html, 'some_div', :partial => 'some_partial' > > #JS > $("some_div").update("<%= escape_javascript(render('some_partial')) > %>"); > > Could you point me some cases when they are used? > > Thanks, > Samnang > > -- > 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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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.

