Wordpress has some default actions and hooks making manipulation of Ajax calls really easy to use.