I have the following:
$.ajax(link.href, { cache: false, dataType: \'html\' }) .done(onDialogDone) .fail(onDialogFail)
The three parameters passed to the done handler are:
done
data, textStatus, jqXHR
You can read more here: http://api.jquery.com/jQuery.ajax/
data
textStatus
jqXHR