On Mon, Apr 7, 2008 at 9:30 AM, David Beckwith <[EMAIL PROTECTED]> wrote: > adding $('edit_field').update('[EMAIL PROTECTED]'); For some reason $ > ('edit_field').value = ..... wasn't working but .update did do the > trick.
That's because the element with an ID of 'edit_field' is your paragraph, not your input control. You cannot set a value on a paragraph element like that. > Ahh... I think this is what I was looking for..... This goes in the > RJS file right? It can, or it can just go inline in your action.... def foo respond_to do |format| format.html {} format.xml {} format.js do render :update do |page| page.replace_html 'foo', 'bar' end end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---