In this short article I would like to explain how to create a simple AJAX request handler in Drupal.
So you have a module created, and you would like to add some AJAX requests in a page, but the question is where to point the requests to? What you have to do is create a Drupal callback, that you can use in a AJAX request, and that will return just the data you need in the callback.

Read more