title: Javascript: Reload page after window.location
body: <p>I have the following function called by a button that redirects to an specific page:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;function procesar(xform){window.location.href = "vtas3.php?id=&lt;?php echo ''.$id.'';?&gt;&amp;fn=&lt;?php echo ''.$fn.'';?&gt;";}&lt;/script&gt;
  </code></pre>
  
  <p>But when the page loads does not refresh data content in the database and I have to reload the page in order to see the updated information.</p>
  
  <p>I've tried to refresh automatically using: <code>parent.window.location.reload(true);</code> 
  but it reloads continously.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks!</p>