thank you for the reply. I now tried to dynamically change the width
of colgroups:
$('col1').setStyle({width: '30%'});
$('col2').setStyle({width: '60%'});
on:
<table style="width: 200px;" cellspacing="0" cellpadding="0">
<colgroup>
<col id="col1" style="width: 50%" />
<col id="col2" style="width: 50%" />
</colgroup>
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>
col1
</td>
<td>
col2
</td>
</tr>
</tbody>
</table>
the only browser this has any effect is IE. Firefox, Safari & Opera
all ignore any dynamic changes to the colgroups. Using Firebug it
seems the width values have correctly been changed for each col but it
does not force the table to be rerendered.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---