help with re-binding
help with re-binding
Hi
I am having trouble implementing the binding technique that allows jquery events to work after an ajax call back
I found some links on how to do this but I cannot seem to get this to work with my particualr code
http://www.learningjquery.com/2008/05/working-with-events-part-2
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
http://jetlogs.org/2009/01/29/re-binding-jquery-events-on-ajax-callbacks/
Here is my code
function delrebind() {
$('.delbskt').click(function(){
$('.additionalcorethree').remove();
$.get( this.href, function () {
$(".bskholder").load("bsk .additionalcorethree");
return false;
delrebind();
});
}
$(document).ready(function(){
$('.delbskt').click(function(){
$('.additionalcorethree').remove();
$.get( this.href, function () {
$(".bskholder").load("bsk .additionalcorethree", function (){
delrebind();
});
});
return false;
});
any ideas welcome
Thanks
Topic Participants
jegzbaby
sime.vidas
craig