Drupal7 AJAX commands (outside forms)

Keywords

Did you know ?

If has a link has class 'use-ajax' <a class='use-ajax href="..."> Drupal will replace an explicit 'nojs' in the path with 'ajax'. But in fact if we call on a response menu item without any '/nojs' in the path to replace, and Drupal will still APPEND '/ajax' (or '/nojs' accordingly), which can then be processed as the first argument in the response callback (and tested for 'ajax' vs 'nojs') !