Just some ideas:

1. After the Ajax action, the element that are target of the ajax call ere 
replaced in the DOM. The function that you bind ONCE and ONLY ONE in header are 
not automatically appliet to the replaced elements.
2. Does it hatten in IE too? I know of a similar problem that effects only IE 
(all versions)

You could try to add the javacode in your AjaxLinks onKlick method

   onClick(target) {
      target.addcomponent(some component);
      target.appendJavascript("$(document).ready(function(){re-initialize the 
actions}");
   }


-----Ursprüngliche Nachricht-----
Von: tubin gen [mailto:fachh...@gmail.com] 
Gesendet: Freitag, 9. April 2010 20:12
An: users
Betreff: jqery not getting called after ajax refresh

I   added this jquery code   to my page.

    $(document).ready(function(){
     $("a.showHidePrograms").click(
     function () {
       var $div= $(this).parent().next("div");
       if($div.attr("class") == 'hide'){
            $div.attr("class","show");
       }else{
          $div.attr("class","hide");
       }
     }
     );
    });

 inside my html I have a table this contains  anchor tag with
class showHidePrograms.
  onclick of this anchor tag the function gets called everything is fine.

This page also has some ajaxLinks on click of this link  I repaint the
table, after this    when I click on anchor tag the jquery script is not
called ,
does repainting somehow hides this anchor from jquery ?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to