title: how to prevent download when the pdf load to iframe?
body: <p>When the iframe loading with pdf automatically download the pdf file. How can i prevent this.</p>
  
  <pre><code> $(function () {
   $("#dialog").dialog({
      autoOpen: false,
      modal: true,
      resizable: false,
      width: "auto",
      show: "fade",
      hide: "fade",
      height: "auto",
      open: function(ev, ui){
               $('#main_iframe').attr('src',($('#dialog').data('url')));
  
            }
  });
  
  $('#btn_ca').click(function(){
      $('#dialog').data('url', 'consumer_affairs.pdf');
      $('#dialog').dialog('open');
  
  });
  </code></pre>