Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7718917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:17:07+00:00 2026-06-01T03:17:07+00:00

I have the following function – it works fine in Firefox: How I can

  • 0

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');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:17:08+00:00Added an answer on June 1, 2026 at 3:17 am

    If you use jquery, I found the following code works in IE, Firefox and Chrome.

    var cnt = 0;
    // this is called when the document finishes loading (similar to onLoad in the body tag)
    $(function() {
        // this asssigns a callback function each time the browser is resized
        // it turns out that it is triggered multiple times on one resize
        $(window).resize(function() {
            cnt++;
            // this code simply displays the # of times the callback is triggered
            // I defined a <div id=show> in the body, and this updates its html.
            $('#show').html('cnt = ' + cnt);
        });
    });
    

    I recommend using jquery for this sort of problem, as it often takes care of the incompatibilities between different browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have following function with a query. it works fine with integer id, but
i have following function in php, how can i convert this in javascript? function
I have the following function: this.alphaArray = function() { var alpha = this.alphStr, ,
I have the following function: //Function to get random number public static int RandomNumber(int
i have following function: function fnGetIdentifiers(id){ $.get( 'getCultureIdentifiers.php?cultureID=' + id, function(data){ if (data.length >
I have the following function : var appendStructure = { init : function(wrapper,structure,cls,callback) {
I have following code function Model(onChanged) { this.array = new Array(); this.onChanged = onChanged;
I have the following function: (function ($) { $.fn.createCommonDialog = function () { this.dialog({
I have the following function that works in Delphi 2006, but under Delphi XE2
I have following function in jquery: $('canvas').createWindow('xyz', 500, 600); And js-code behind is: var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.