title: javascript: call function inside object, from a callback function
body: <p>when i try to call a function inside the object using "this" from a callback function, an error occur saying that the method is undefined.
  How can I solve this issue!.</p>
  
  <pre><code> var object_log = {
      user: "",
      pass: "",
      error_message: "an error occured while connecting",
      init: function(user, pass) {
          this.user = user;
          this.pass = pass;
      },
      login: function() {
          remote_submit(identify, this.success, this.error);
      },
      error: function() {
          alert(this.error_message);
      },
      success: function() {
          alert("success");
      }
  };
  </code></pre>