title: Simulating form submit with a jquery ajax call
body: <p>I have a chunk of code that defines <code>div</code>s and some of the callbacks on them when clicked. To avoid code redundancy, I want to reuse it. The callbacks use <code>$.post</code> calls to communicate with the server whereas, for this specific page, I want a page refresh the way a form submit does.</p>
  
  <p>Is there any difference in using a form submit to <code>submitPage.php</code> and using the following?</p>
  
  <pre><code>$.post('submitPage',  dataParams, null, 'json').
        success(function(resp, status, req) {
          window.location = 'submitPage.php';  // redirect
        });
  </code></pre>
  
  <p>I am curious about how this might intrinsically effect the processing of entries in <code>dataParams</code> by submitPage.php.</p>