Record the cause of ajax events