title: Getting value from iframe working in IE but not Chrome or Firefox
body: <p>I am using lwip tcp/ip stack with a STM32F4 to host a small configuration website for my device. I am refreshing a hidden iframe on my page to get updated SSI values and then using them in my <em>tmp</em> variable to update a graph. The code below works great in IE but in Firefox and Chrome <em>tmp</em> only gets a value once even though the <em>temptemp</em> element is getting updated values from my firmware.</p>
  
  <pre><code>var iframe = document.getElementById("iframeID");
  var innerdoc = (iframe.contentWindow || iframe.contentDocument);
  if(innerdoc.document)innerdoc = innerdoc.document;
  (function worker() {
    $.ajax({
      url: 'data.shtml', 
      complete: function() {
        document.getElementById("iframeID").contentWindow.location.reload();
        setTimeout(worker, 1000);
        tmp = innerdoc.getElementById("temptemp").value;
      }
    });
  })();
  </code></pre>