Shows how outdated my HTML is.  Thanks for the pointer.  Its funny, when I was 
googling around apparently once upon a time it was at least tolerated, if not 
officially acceptable, to have <div> as a child of table.
___________________________
Jeffrey Lee
http://www.jeffreyalanlee.com
[email protected]




On Feb 15, 2011, at 23:20 , T.J. Crowder wrote:

> Hi,
> 
> That HTML is invalid. You can't have a `div` as a child of `table`:
> http://www.w3.org/TR/html5/tabular-data.html#the-table-element
> 
> If you want to subdivide a table like that, you probably want `thead`
> (for your headers) and one or more `tbody` elements:
> 
> <table>
>  <thead>
>    <tr>
>      <th>Item</th>
>       <th>Transaction Type</th>
>       <th>Quantity</th>
>      <th>Amount</th>
>       <th>Transaction comments</th>
>    </tr>
>  </thead>
>  <tbody id = "transList">
>    <tr>
>      <<bunch of table data>>
>    </tr>
>    <tr>
>      <<bunch of table data>>
>    </tr><tr>
>       <<bunch of table data>>
>    </tr>
>  </tbody>
> </table>
> 
> ...and then your update will have to be valid `tbody` content (e.g.,
> rows).
> 
> Example:
> http://jsbin.com/evuxe3
> 
> HTH,
> --
> T.J. Crowder
> Independent Software Engineer
> tj / crowder software / com
> www / crowder software / com
> 
> On Feb 15, 10:59 pm, Jeff <[email protected]> wrote:
>> This is a rails generated webpage.  I've created a table definition as
>> follows:
>> 
>> <table>
>>   <tr>
>>     <th>Item</th>
>>     <th>Transaction Type</th>
>>     <th>Quantity</th>
>>     <th>Amount</th>
>>     <th>Transaction comments</th>
>>   </tr>
>> 
>> <div id = "transList">
>> <tr>
>>    <<bunch of table data>>
>>   </tr><tr>
>>    <<bunch of table data>>
>>   </tr><tr>
>>     <<bunch of table data>>
>>   </tr>
>> </div>
>> </table>
>> 
>> If I execute a $('transList').update('Test') or frankly any other text
>> or html, the existing table data remains, and the updated text is
>> placed above the entire table.  However, if I do a view - >source,
>> this new data doesn't show up in the page source at all, only the old
>> table data.
>> 
>> I'm having this problem in both Safari and Firefox.  Any suggestions?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to