title: How to reference a object method in another object method
body: <p>I have a basic lack in understanding the OOP for javascript. What I understand is that I can make classes like this</p>
  
  <pre><code>var Car = function(){}
  
  Car.prototype.GetBrand = function(){ return "Ford";}
  Car.prototype.GetYear = function(){ return "1989";}
  
  var ford = new Car();
  
  ford.GetBrand();
  ford.GetYear();
  </code></pre>
  
  <p>this works...
  Now I want to implement a function GetInfo and this should print out Brand &amp; Date</p>
  
  <p>how can I reference the GetBrand() and GetYear() methods in my GetInfo() method.</p>
  
  <pre><code>  This is not working:
  Car.prototype.GetInfo = function(){ 
          return this.GetBrand()+ ' '+ this.GetYear();
      }
  </code></pre>
  
  <p>this is not the right accessor... 
  What do I miss here?</p>
  
  <p>OK edit:
  this was a simplified example there my realy method call is in anothe function and that's why we are talking about another scope:</p>
  
  <pre><code>JsonLoader.prototype.GetJsonAndMerge = function(url,template,tagToAppend){
  $.ajax({
      url: url,
      dataType: 'json',
      success: function(data) {
          this.ShowItems(data,template,tagToAppend); 
          }
      });
  }
  </code></pre>
  
  <p>I try to reach my ShowItems method... here and this is again in a function that's maybe why the this operator does not work... sorry for the confusion =/</p>