title: jQuery Ajax HTTP Request INTO a click function - not working
body: <p>My question is:</p>
  
  <p>Is it possible to do an Ajax request WITHIN a click function, with jQuery? (see example below), If so, what am I doing wrong? Because I'm not being able to do any request (I'm alerting the data through my success function and nothing is being retrieved).</p>
  
  <p>Thank you very much in advance for any help! :)</p>
  
  <pre><code> function tracker(){
  
      this.saveEntry = function(elementTracked, elementTrackedType){      
      var mode = "save";
      var dataPost = "mode="+mode+"&amp;elementTracked="+elementTracked+"&amp;elementTrackedType="+elementTrackedType;        
      $.ajax({
          type: "POST",
          url: 'myURL',
          data:dataPost,
          success:function(msg){
              alert(msg);             
          },
          beforeSend:function(msg){
              $("#trackingStatistics").html("Loading...");
          }
      });
      return;
  },
      this.stopLinksSaveAndContinue = function(){
      var fileName;
      $("a[rel^='presentation']").click(function(e){      
          fileName = $(this).attr("rel").substring(13);   
          this.saveEntry(fileName,"Presentation");                                        
      })                  
  }
  </code></pre>
  
  <p>}</p>