I have the following function – it works fine in Firefox:
How I can I get this to fire on body resize in IE??
function sizeColumnHeadings() {
var $headingsTable = $('#TopicPostList_hdiv > table').eq(0),
$rowsTable = $('#TopicPostList_div > table').eq(0);
if ($headingsTable.length && $rowsTable.length) {
$headingsTable.width($rowsTable.width());
}
}
$(window).on('resize', function() {
sizeColumnHeadings();
}).trigger('resize');
If you use jquery, I found the following code works in IE, Firefox and Chrome.
I recommend using jquery for this sort of problem, as it often takes care of the incompatibilities between different browser.