title: Iframe does not trigger resize event
body: <p>After 3 days of research and trial and error, I am not able to get the iframe nor its contents to trigger a resize event so that my resize function is called.  If I use ...trigger("resize"); to manually trigger a resize event, my resize function is called and works.  The page that is loaded in the iframe is on the same domain (<code>http://localhost:81/curlExample/</code>) as the page containing the iframe.  Eventually, the page in the iframe will be a supplied by the php curl method, but I would like to get it working first.</p>
  
  <p>*******Updated********
  How do I get the resize event triggered when I resize the browser window which causes the iframe to adjust its size?</p>
  
  <hr>
  
  <p>Thank you for your help!</p>
  
  <p>Page with the iframe
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function(){
     
      function setResize()
      {
          window.alert("Hello");
        
          var iframeRef = document.getElementById('displayframe');
          $(iframeRef).on("resize", function(){
              var xExp = 0;
              window.alert("Resize event fired.");
              
          });
      }
    
      $('#displayframe').load(function()
      {
          alert("Hello from iFrame.  Load event fired.");
          var myStallTime = setTimeout(setResize, 3000);
  
      });
  
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p id="myP"&gt;Hello&lt;/p&gt;
  
  &lt;iframe id="displayframe" src="http://localhost:81/curlExample/HelloIframe.xhtml" style="height:250px; width:100%;"&gt;
    &lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
  &lt;/iframe&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Page within the iframe (HelloIframe.xhtml)</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
          &lt;title&gt;TODO supply a title&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="myContent" style="width:100%; height:200px;"&gt;
              &lt;h1&gt;TODO write content&lt;/h1&gt;
              &lt;h2&gt;Extremity sweetness difficult behaviour he of&lt;/h2&gt;
  
              &lt;p&gt;Agreed joy vanity regret met may ladies oppose who. Mile fail as left as hard eyes. Meet made call in mean four year it to. Prospect so branched wondered sensible of up. For gay consisted resolving pronounce sportsman saw discovery not. Northward or household as conveying we earnestly believing. No in up contrasted discretion inhabiting excellence. Entreaties we collecting unpleasant at everything conviction.&lt;/p&gt;
  
              &lt;p&gt;Yet remarkably appearance get him his projection. Diverted endeavor bed peculiar men the not desirous. Acuteness abilities ask can offending furnished fulfilled sex. Warrant fifteen exposed ye at mistake. Blush since so in noisy still built up an again. As young ye hopes no he place means. Partiality diminution gay yet entreaties admiration. In mr it he mention perhaps attempt pointed suppose. Unknown ye chamber of warrant of norland arrived.&lt;/p&gt;
  
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>