title: IE iframe download causing security warning
body: <p>My application takes AJAX requests and responds with a URL to a download location on my website for the file they're requesting. Then the Javascript AJAX method for success of the response, dynamically creates an iframe on the page with the src set to the download location, to allow the file dialog to display so the user can download the file. The problem is IE displays the following security warning:</p>
  
  <p><a href="http://avnhelp.com/default_files/image004.jpg" rel="nofollow">http://avnhelp.com/default_files/image004.jpg</a></p>
  
  <p>The main reason this is a problem is because, when they click accept, it refreshes the page and the file download is lost (I'm assuming this is because it's in an iframe created dynamically).</p>
  
  <p>I need a way to either: </p>
  
  <ul>
  <li><p>disable this security dialog prompt </p></li>
  <li><p>prompt the user when they visit the
  site to accept any future file
  downloads. </p></li>
  <li><p>fix the fact that upon refresh (from 
  accepting) the file download is lost.</p></li>
  </ul>
  
  <p>Here is my iframe code:</p>
  
  <pre><code>function create_iframe(url) {
      frame = document.createElement('IFRAME');
      frame.setAttribute('src', url);
      frame.style.display = 'none';
      document.body.appendChild(frame);
  }
  </code></pre>
  
  <p>If someone could help me with this, that'd be great! Thanks.</p>