title: Refresh page after ajax form submit
body: <p>Hello i need to know how to refresh the page after i submit an ajax form.
  Atm i'm using an onClick function it seems it refreshes the page but i still need to press f5 to see the changed i made.</p>
  
  <p>js:   </p>
  
  <pre><code> &lt;script&gt;
      function reloadPage()
        {
        location.reload()
        }
      &lt;/script&gt;
  </code></pre>
  
  <p>form:</p>
  
  <pre><code>echo'&lt;form class="imageform" method="post" enctype="multipart/form-data" action=\'clase/app/admin_activare_oferta.php\'&gt;';
  echo'&lt;input  type="hidden" name="id_oferta"  value="'.$oferta.'"&gt;';
  echo'&lt;input type="submit" id="activ" value="" onclick="reloadPage()"&gt;&lt;/form&gt;'; 
  </code></pre>
  
  <p>I know why i need to press on the button twice to see the change, because i need to run that refresh after ajax submits.</p>