title: How to raise "completed" event on a submit event?
body: <p>The controller action is called after the completedCallback not after $(this).submit().
  See the code below.
  How can i trigger the action before raising the completed callback without using ajax?</p>
  
  <p>controller:</p>
  
  <pre>
  <code>
  public ActionResult MyFunction(FormCollection data){
  //this should trigger before calling the CompletedEvent
  }
  </code>
  </pre>
  
  <p>javascript </p>
  
  <pre>
  <code>
  
  var flag = false;
  
  $(form).submit(function(){
  
          if(!flag){
  
          //raise start event
          startedCallback.call();
  
          flag = true;
          $(this).submit();
  
         //raise completed event
          completedCallback.call();
  
  }
  
  });
  
  </code>
  </pre>