title: Script stops executing if I remove alert()
body: <pre><code>$("div[id^='BlockHeading']").live("click", function () {
  
      var text = $(this).text().toString();
      if ($(this).next().css("display") == "none") {
          $(this).empty();
          $(this).html("" + text + " &lt;img src='../img/109041_25936_16_chevron_collapse_icon.png' height='12' width='12' style='float:right'&gt;")
          iframeresize();
          $(this).focus();
      } else {
          $(this).empty();
          $(this).html("" + text + " &lt;img src='../img/109041_25936_16_chevron_collapse_iconDown.png' height='12' width='12' style='float:right'&gt;")
          iframeresize();
          $(this).focus();
      }
      jQuery(this).next(".content").slideToggle(100);
  });
  </code></pre>
  
  <p>I am attempting to resize the <code>IFRAME</code> after an event has happened. The above shows one such event. The problem, though, occurs in the function <code>iframeresize()</code> - which is called if I fire an <code>alert()</code> before calling it, or within the function itself... and which works from the <code>debug-window</code> in Firebug - but does not work at all unless the <code>alert()</code> is present...</p>
  
  <p>What am I missing?</p>
  
  <p><strong>EDIT</strong>
  the code for <code>iframeresize()</code> :</p>
  
  <pre><code>function iframeresize() { 
       $("#frame1", parent.document).css("height", $("#form1").height() + 100);
       $("#container", parent.document).css("height", $("#form1").height() + 100); 
  }
  </code></pre>