Selecting a parent div gives an error coming from jquery

Selecting a parent div gives an error coming from jquery

Hey there. I am trying to write a piece of javascript that will find the parent ".message" div (not any other ".message" divs - just the parent one to the clicked link). and append the result of an AJAX POST request. This is the code I have, which (to me) looks like it should work.

   $('a.delete_message').click( function() {
      var value = $(this).attr('rel');
      var rel = value;
      console.log( value );
      value = value.split("/");
      var quoteID = value[0];
      var developerID = value[1];
      $.ajax({
         type: "POST",
         url: "delete_message.php",
         data: "quoteID="+ quoteID + "&developerID=" + developerID,
         success: function(result){
            $(this).parent(".message").append(result);
            $(this).fadeOut();
            //dismiss_one;
         }
      });   
   });
});


However, jquery.min.js returns this error:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js :: anonymous :: line 12"  data: no]

Line 0


Is there any other way to achieve the same task?

Thanks in advance,
John.