Hello, for anyone interested I produced (very small) plugin, which adds an 'is_ajax' method to you CGI::Application module. It is a syntax sugar around a check for 'X-Requested-With' header. http://search.cpan.org/~jira/CGI-Application-Plugin-DetectAjax-0.04