Forums / Cotonti / Support / Ajax pages, lists, etc

Trustmaster
#36496 2012-12-10 14:29

Oh, sorry, COT_AJAX is a constant and it is always predefined in common.php line 190:

define('COT_AJAX', !empty($_SERVER['HTTP_X_REQUESTED_WITH']) || !empty($_SERVER['X-Requested-With']) || $_GET['_ajax'] == 1);

So changing it doesn't really work. Instead, you have a few options:

  • Request a page via XHR (AJAX).
  • Pass _ajax=1 in the URL.
  • Hack index.php and put $_GET['_ajax'] = 1 at the top of it.
May the Source be with you!