Hadmut
2008-May-24 10:56 UTC
replacing elements/changing attributes with ''remote_function'' ?
Hi, how could I replace more than just the innerHTML of an element with a remote function? The given problem: I''d like to update table row in a table of the style <table> <tr id="row1" class="good">...</tr> <tr id="row2" class="alert">...</tr> ... </table> where not only the contents of the tr change, but the class attribut as well (e.g. to change the background color into red for alerting). With the argument :update=>:row1 I could replace the innerHTML, but not the class attribute. How would I do this? regards Hadmut --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---