s.d wrote: > I'm designing a table that is displayed in a client browser. > > The columns are *sortable*. I'd like to be able to target (via AJAX) a > specific row (or even a specific cell within the row) to be updated when > I receive a status change from the server. > > What is the best way to go about this? Should I have a separate <div > id="xxx"> for each row? Is there a better way?
I don't believe you can have a div be a direct child of a tr. Why not just give the tr an id (probably the same as the record it corresponds to on the server side), and then have your Javascript code select that tr when it needs to update. Changing the order of that tr shouldn't change it's id right? You could also give your td's class names based on the column (or an id that's a combination or tr's id and column number like "2_5") if you wanted to specifically target a td. -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ 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 [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-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
