tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

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[

Read this tip

Search EE Insider Tips
Sponsored By