This page documents a wonderfully simple way to implement a global .ajaxStart and .ajaxStop
. But as one of the comments points out, the downside is that it relies on a modal window presumably placed at an absolute x/y on the page.
I'm looking to extend the answer provided there by appending the loader div to whichever div is the origin of my Ajax call. I don't want to be _replacing the HTML of my current div - and I don't want to append HTML to it - I want to merge that loader div into my current div.
I've taken a couple runs with '.append' and '.html' but it's not clear to me exactly how to go about producing the given effect - especially given the reference to Update: As of jQuery 1.8,
thanks