title: Uncaught TypeError when trying to post form results using Ajax
body: <p>I am trying to make validation of the form with Ajax (to have feedback with no page reloads). </p>
  
  <p>I call myAjax function where I pass some parameters. </p>
  
  <pre><code>  function myAjax(method, parameters)
    {
      var ParametersArray= {
        "method" : method,
        "parameters" : parameters
      }
      return (new AjaxRequest()).post("FormValidator.php", ParametersArray);
    };
  </code></pre>
  
  <p>Unfortunately I have TypeError after I load html page: </p>
  
  <pre><code>Uncaught TypeError: (intermediate value).post is not a function
  </code></pre>
  
  <p>What wrong with it? </p>