AJAX is used to give asynchronous call, without blocking the UI
thread. There is no event handling support from AJAX as far as I know. You need to use HTML event handling.
For Example,
For a HTML Button element, on onClick event, you can register your java script method. In that method, you can give a AJAX call.
hth,