title: How to refresh page in Jquery Ajax form submission before success?
body: <p>I am submitting a form and setting user object in request at server side. After that I want my page to be refreshed before success method of jquery ajax so that the updated values can be reflected. Could somebody help me?<br>
  Below is my jquery code :</p>
  
  <pre><code>   function viewMemberProfile(userId){
  
           document.getElementById("memberId").value=userId;
  
           $.ajax({
               type: "POST",
               url:'viewMemberProfile.html',
               cache: false,
               data: $("#memberProfileForm").serialize(),
  
               success: function (data) {
                     $("#memberProfileDiv").reveal({ 
                           animation : 'fade',
                           animationspeed : 400, 
                           closeonbackgroundclick : true,
                           dismissmodalclass : 'close' 
                     });
               }
      });
  
      return false;
  
   }
  </code></pre>