title: window.onresize = function { //code } doesn't seem to exeute my inner code
body: <p>I'm using <code>window.onresize</code> to calculate the appropriate coordinates for my buttons on my page. The buttons are placed in the div called <code>&lt;div&gt;trinity&lt;/div&gt;</code>. The coordinates of the buttons are relatively calculated according to the height and width of the "trinity" div.</p>
  
  <p>The trinity div resizes correctly when the window is being resized, but the inner code of the  <code>window.onresize = function ()</code> doesn't seem to fire off. In other words my <code>xml_button_create(window.myValue,height,width,false)</code> isn't firing off. In this function I use jQuery to adjust the coordinates of my buttons.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>window.onresize = function () {
      // get HEIGHT and WIDTH of navigation div
      var height= $("#trinity").height();
      var width= $("#trinity").width();
      // CREATE BUTTONS
      xml_button_create(window.myValue,height,width,false);
  };
  </code></pre>