title: Additional data not being passed with JQuery POST request
body: <p>I have a html page sends a CGI request (hosted via IIS server).</p>
  
  <p>This works perfectly.</p>
  
  <p><strong>HTML Page</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="js/jquery-1.11.0.js"&gt;  
  &lt;/script&gt;
  &lt;script src="sample.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="slam" action= "http://localhost/Dev/SIAS/slam/siscgi.exe" &gt;
      &lt;input type="submit" value="Submit" id="B1"&gt;        
      &lt;input type="hidden" name="request" value="sample"&gt;
      &lt;input type="hidden" name="format" value="xml"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>sample.js</strong></p>
  
  <pre><code>$(document).ready(function () {
  
  var siscgi = $("#slam").attr('action');
  
  
  $("#B1").click(function (evt) {
      var data= $("#slam").serialize();
      $.post(siscgi,data,
              function(data,status){          
  
      });  
  });
  
  });
  </code></pre>
  
  <p>I am trying to remove the hidden input fields and instead pass them directly as additional data in the javascript like this:</p>
  
  <p><strong>sample.js</strong></p>
  
  <pre><code>$(document).ready(function () {
  
  var siscgi = $("#slam").attr('action');
  
  
  $("#B1").click(function (evt) {
      var data= {request : "sample", format : "xml"};
      $.post(siscgi,data,
              function(data,status){          
  
      });  
  });
  
  });
  </code></pre>
  
  <p>This fails, as the server (via siscgi.exe) sends an error saying missing parameters - request and format params are not being sent.</p>
  
  <p>The result is a xml tree that needs to be displayed in the browser.</p>
  
  <p>Can anyone let me know, how to fix this issue?</p>