There is a hardcoded custom module made which uses an ajax written in prototype. I cannot want to touch that!. I just want to do some simple jquery stuff after that ajax is executed. So i tried:
jQuery( document ).ajaxComplete(function( event, xhr, settings ) {
if ( settings.url === "my-url" ) {
alert(12);
}
});
Another version that I tried is:
jQuery(document).bind("ajaxComplete", function(){
alert(12);
});
Neither of them is not working. No error in the console. Nothing!. I loaded first the jquery version and after that my code. What else should I try ? Thx