Currently working on a project to create a Wikipedia viewer, and running into an issue with the following code snippet:
$(document).ready(function() {
$(document).on('click', '#search_button', function() {
addWikiResults();
});
$(document).keypress(function(enter) {
if(enter.which == 13)
addWikiResults();
});
$(document).ajaxStop(function() {
alert('ajax stop now working');
});
});
The ajaxStop function is not triggering at all, along with ajaxStart. Everything else seems to be functioning correctly except for this part. For reference, here is the link to my CodePen: https://codepen.io/nuclearmachine/pen/xdXXKv?editors=1000, specifically focusing on line 130
.