var data = jQuery.httpData( xml, s.dataType );
// If a local callback was specified, fire it and pass it the data
if ( s.success )
s.success( data, status );
// Fire the global callback
if( s.global )
jQuery.event.trigger( “ajaxSuccess”, [xml, s] );
// Otherwise, the request was not successful
} else {
// If a local callback was specified, fire it
if ( s.error ) s.error( xml, status );
// Fire the global callback
if( s.global )
jQuery.event.trigger( “ajaxError”, [xml, s] );
}
// The request was completed
if( s.global )
jQuery.event.trigger( “ajaxComplete”, [xml, s] );










