anchor.diff:        method:   "POST",
         data:      form.serialize(),
         dataType: "JSON",
  -      timeout:   1000,
         success: function(json, textStatus, jqXHR) {
            if (json.success) {
               form[0].reset();
  
positive.code: function logout(event) {
     event.preventDefault();
     $.ajax({
        url: $(this).attr("href"),
        method: "POST",
        timeout: 1000,
        success: function(data, textStatus, jqXHR) {
           window.location = "/";
        },
  
negative.code:             $("#ajaxLogin").jqmHide();
              $("#loginLink").html(
                 'Logged in as ' + json.username +
                 ' (<a href="' + $("#logout").attr("href") +
                 '" id="logout">Logout</a>)');
              if (onLogin) {
                 // execute the saved event.success function
  