Tips tagged “Ajax”
- AJAX Request Code
-
Posted on June 02, 2009 by Kenny Meyers
In many frameworks there is a way to test if a request is AJAX or not. Sometimes I need to request partial templates with some EE code on them that I want to be accessible via AJAX only. I turn on PHP parsing on “before” and use the following.
<?php
$AJAX = (isset($_SERVER[
