JAVA doesn´t work after AJAX

JAVA doesn´t work after AJAX

Dear Members,
I turn now, you because I'm desperate. I just do not find the error. I want to click on an image and trigger an AJAX action. This also works. AJAX gives the image back, it responds to no more clicking!

Here is my simple example, without SQL.
When I click on the IMAGE it works, and when I klick on the image from the worker file, it doesn´t work. So I cant click on it for more times.

Here my function from the file:






  1. $('img[name^="IMGSTKER"]').click(function() {
  2.         alert("TEST");
  3.             var id = this.name;
  4.             //alert(id);
  5.             $.ajax({
  6.                type: "POST",
  7.                url: "../worker/workerSTK_erledigt.php",
  8.                data: {
  9.                    ID_STK_ER: id, stk_addit_geraet: <? echo $_GET['id']; ?>
  10.                },
  11.                success: function(msg){
  12.                    $("#show_stk_date").html(msg);
  13.                 }
  14.             });
  15.     });
Here my workerSTK_erledigt.php

  1. echo '<div id="HACKEN"><img src="../../../images/haken.png" border="0" title="Mitarbeiter unterwiesen" width="20" height="20" name="IMGSTKER" id="IMGSTKER"/></div>';
In the worker File´s header I included the funtcions and jqueryies Files, but I doesn´t work too.

Thank you!