title: How to make a JavaScript Server request
body: <p>I'm trying to make a JavaScript Request to Json server configured on a site. I have handled the permissions on the site so I can save comments using a webservice module. The thing is that I must use JavaScript to do this and I have tried this:</p>
  
  <pre><code>function CommentThis()
  {
      var comment_object = 
              {
                  "nid": 3,     "comment": "Hello!This is my comment...", 
                  "cid": 2,     "subject": "My comment",     "uid": 1  
              };
      var data= 
          {
          "method": "comment.save",
          "comment": comment_object
          }; 
  
      var jsonRequest = new Request.JSON(
                  {
                  url: "http://my_site.com/?q=services/json",
                  onSuccess: function(response){
                      var myDataArray = response['#data'];
                      document.writeln(myDataArray[16]);
                                   }
                  }
              ).send({ data: data });
  
  }
  </code></pre>
  
  <p>Firebug says that Request is not defined.
  The fact is that I don't know how to construct this Request JSON class. Please help.</p>