title: Prototype to JQuery conversion - stuck with class.create
body: <p>I'm a novice who's trying to convert code from prototype to JQuery. I'm getting through the basics but am stuck with the code below. I've tried using jquery extent but cannot work it out. Here is the code, I'd really appreciate some help.</p>
  
  <pre><code>var SaveForm = Class.create();
  SaveForm.prototype = {
      formId: null,
      responseText: null,
  
      initialize: function(formId)
      {
              this.formId = formId;
      }, 
      sendRequest: function(idform)
      {
              var referenceThis = this;
              $(idform).request(
              {
                        onSuccess: function(transport)
                        {
                                referenceThis.responseText = transport.responseText;
                                referenceThis.onSuccess();
                        },
                        onFailure: function(transport)
                        {
                                referenceThis.responseText = transport.responseText;
                                referenceThis.onFailure();
                        }
              });
      },
      onSuccess: function()
      {
      },
      onFailure: function()
      {
      }
  }
  </code></pre>