title: JQuery Excel export issue
body: <p>I have some data from JQGrid that should be exported to excel. So, we have written a java servlet to write the data to excel and send it back. From the client side we are using an AJAX JSONP request by sending JSON data. I am able to hit the servlet and servlet sending the created excel back to the client. But i am not able to see excel or any kind of output from client side.</p>
  
  <p>When i use the Fiddler and observed the http calls, i found that application received the result. but still it is not showing the result.</p>
  
  <p>Here is my result header, that i have received.</p>
  
  <pre><code>HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  Content-Disposition: attachment; filename=PistonData.xls
  Content-Type: application/vnd.ms-excel
  Content-Length: 6144
  Date: Tue, 27 Mar 2012 08:49:04 GMT
  </code></pre>
  
  <p>How to open this result as Excel using JQuery? Can somebody please suggest me a way to fix this issue.</p>
  
  <p><strong>Update #1</strong>
  Forgot to include request</p>
  
  <pre><code>$.ajax({
          type: "POST",
          dataType: "jsonp",
          contentType:'application/vnd.ms-excel',
          url: "http://devmachine:9010/axis/SPSServlet",
          data: param,
          success: function (dataToSend) {
              alert(dataToSend);
          }
      });
  </code></pre>
  
  <p><strong>Update #2</strong>
  As per Oleg's suggestions i worked out a solution for this problem.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    &lt;form id="frmExcelExport" style="display:none;"&gt;
         &lt;input type=hidden id="partId" name="partId" /&gt;
         &lt;input type=hidden id="columnNames" name="columnNames" /&gt;
         &lt;input type=hidden id="data" name="data" /&gt;
      &lt;/form&gt; 
  
  $('#columnNames').val(colModStr);
  $('#partId').val(currentPartID);
  $('#data').val(dataStr);
  
  var urlForExport = "http://devmachine:9010/axis/SPSServlet";        
  $('#frmExcelExport').attr("method", "post");
  $('#frmExcelExport').attr("action", urlForExport); 
  $('#frmExcelExport').submit();
  </code></pre>
  
  <p>and it is working very good.
  Thanks a bunch to Oleg!!!!</p>