title: Jquery File download ($.fileDownload)
body: <p>I am using jquery file download ..</p>
  
  <p>the code is as follows : </p>
  
  <pre><code> function downloadFile(){
  var downloadOptions = {
  preparingMessageHtml: "We are preparing your report, please wait...",
  failMessageHtml: "No reports generated. No Survey data is available."
                    };
  
       $.fileDownload("displaySurveyReport.action",downloadOptions);
  return false; 
  }
  </code></pre>
  
  <p>This is what i am doing at button click </p>
  
  <p></p>
  
  <p>When i click on the button , the preparingMessageHtml: "We are preparing your report, please wait...", is shown in a dialog box ...
  The problem is that this dialog box does not go off after the fle completes its preparing and i have to close it manually ... 
  How can i make it go off when the file completes its preparation and is ready to download..</p>
  
  <p>Thanks</p>