I am trying to get a “loading” div for my ajaxified site. using the JSF 2.0 tag f:ajaxto add ajax to the site and "try" to make displayin divusing the function jQuery $(document).ajaxStart.
Part of jQuery code is as follows:
$(document).ajaxStart(function(){
console.log("ajax start");
$('#ajaxBusy').show();
}).ajaxStop(function(){
console.log("ajax end");
$('#ajaxBusy').hide();
});
Log functions are never called. Any idea why? Does JAF ajax and javascript ajax work?
Thank!
source
share