2009/8/14 RVince <[email protected]>: > > I have a view that has a swath of innerHTML in it. This innerHTML > resides in an HTML table, and it is updated every second by a > javascript timer which, through anX MLHttpRequest, reads a file of > JSON data which is written to the server by another application. > > The upshot is, this table is live on the web page. Within this table, > I will have a link which the user can click, which would then open > that row from that live table, in a formview to be user-edited. > > I plan on using http://www.prototypejs.org/api/element/toggle to pop > this open. The problem is, this would require a div for each row that > would have the form. As you can see from my description, I am updating > this row every second, and at times there can be two dozen or more > rows -- which is too much data to push through. > > I'm wondering if anyonw can offer me any good ideas on how to solve > this dilemma. I need to keep the data, the html, for the table as > light as possible, When the user click the rows link, I need to open > the form up within the rows (the typical type of editing behavior you > see in web apps). >
Not helping solve the problem at all but just to point out that a form cannot wrap a row or group of cells in a table, it is not valid html. The form must include the whole table or the form must lie entirely within one cell. Do not be led astray by the fact that it appears to work in some browsers, it will not work in all. It is a pain but that is the way it is. Colin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

