From the .ajaxComplete()
docs:
As of jQuery 1.8, the .ajaxComplete() method should only be attached to document. All ajaxComplete handlers are invoked, regardless of what Ajax request was completed. If you must differentiate between the requests, use the parameters passed to the handler. Each time an ajaxComplete handler is executed, it is passed the event object, the XMLHttpRequest object, and the settings object that was used in the creation of the request. For example, you can restrict the callback to only handling events dealing with a particular URL:
So, the way I read this is, if you know you'll be running a specific URL (your php processing script), then you can pass that URL in the settings to the .ajaxComplete()
method.... (in your case, "/xyz")
$( document ).ajaxComplete(function( event, xhr, settings ) {
if ( settings.url === "/xyz" ) {
$( ".log" ).text( "Triggered ajaxComplete handler. The result is " +
xhr.responseHTML );
}
});