title: When running a resize (javascript) function it won't allow my AJAX functions to run
body: <p>Any idea why this would have an effect? Sorry I can't give the other code as it is private and non shareable :(
  Any tips would be appreciated.</p>
  
  <pre><code>&lt;body onresize="resizeWindow()" onload="resizeWindow()"&gt;
   Content deedeedum.AJAX function to get data and display every 2sec.
   &lt;/body&gt;  
  
  
      &lt;script type="javascript/text&gt;   
      /**** Page Rescaling Function ****/
  
      function resizeWindow() 
      {
          var windowHeight = getWindowHeight();
  
          document.getElementById("content").style.height = (windowHeight - 0) + "px";
          document.getElementById("navigation").style.height = (windowHeight - 0) + "px";
  
      }
  
      function getWindowHeight() 
      {
          var windowHeight=0;
          if (typeof(window.innerHeight)=='number') 
          {
              windowHeight = window.innerHeight;
          }
          else {
              if (document.documentElement &amp;&amp; document.documentElement.clientHeight) 
              {
                  windowHeight = document.documentElement.clientHeight;
              }
              else 
              {
                  if (document.body &amp;&amp; document.body.clientHeight) 
                  {
                      windowHeight = document.body.clientHeight;
                  }
              }
          }
          return windowHeight;
      }
     &lt;/script&gt;
  </code></pre>