Hello,
I want to display a success msg after finishing an Ajax call. I tried to do the following:
$("form.stock").submit(function(){
   $.post('/ajax/transactionupdate', params, function(data) {
     $this.append("success");
   }
});
The problem is that inside the callback function, it seems like $(this) is unknown (not part of the instance).
So I tried to use ajaxComplete / ajaxSuccess as follows but for some reason they are not even initiated once the ajax is finished:
 $(this).ajaxComplete(function() {
        alert("STOP");
  });
However, the ajaxStart does seem to work:
  $(this).ajaxStart(function() {
        alert("START");
  });
Can anyone notice whats the problem?
Thanks! Joel