title: CakePHP 1.3: Detect ajax request in view
body: <p>Before Cake 1.3 I would check for an ajax request with a simple <code>$ajax-&gt;isAjax()</code>. Now that the <code>AjaxHelper</code> has been deprecated, I'm looking for the proper way to check for an ajax request in my views. I can't find anything in the <code>JsHelper</code> or <code>HtmlHelper</code> methods. This seems like a really simple thing, I hope I'm not missing something obvious!</p>
  
  <p>By the way, I'm aware of the <code>RequestHandler</code> component (<code>$this-&gt;RequestHandler-&gt;isAjax()</code> in controller), but again I'm looking for help on how to do the ajax detection in my views. </p>
  
  <p>Thanks.</p>