title: Alertify - Show success message with delay
body: <pre><code>if(jQuery("#form_fill_hours").validationEngine('validate')){
  
      alertify.confirm("Are you sure you want to submit this exam form to your teacher?", function (e) {
      if (e) {
          alertify.set({ delay: 10000 });
          alertify.success("Your exam form has been submitted");
          $.blockUI.defaults.message = "&lt;h1 class='block_msg'&gt;Please Wait...&lt;/h1&gt;";
          $.post( SITE_URL+"fill/save/saveformexam?type=1",$("#form_fill_hours").serialize(), function( data ) {
              window.location.href="&lt;?php echo EXAM_URL."exam/weekly/index?week=".$_GET['week'] ?&gt;";
          });
      } else {
          alertify.error("Your exam form is not submitted");
      }
  });
              return false;
      }else{
              return false;
      }
  </code></pre>
  
  <p>Using alertify, I have set <code>10</code> secs delay for the success message but it is not working? I just need to show success alert to user and then
  redirect to same page.</p>
  
  <p>Tried using <code>delay</code> but not working though:</p>
  
  <pre><code>alertify.success("Your exam form has been submitted");//show alert to user
  delay(100);//wait for 10 secs and then post form data
  $.post( SITE_URL+"fill/save/saveformexam?type=1",$("#form_fill_hours").serialize(), function( data ) {
                  window.location.href="&lt;?php echo EXAM_URL."exam/weekly/index?week=".$_GET['week'] ?&gt;";
              });
  </code></pre>
  
  <p>How could I set some delay in success message so that user can see it and only then post the form details to controller action ?</p>