LEAP™ is a content editor’s dream (CMS), a designer’s best option, and the perfect framework for site development.
LEAP™ is simpleLEAPLEAP™ is secureLEAPLEAP™ is SEO-centric

isAjax

A method that returns a boolean that signifies if the content was requested via xmlhttprequest or GET/POST.

In LEAP™ 5, a page variable $isAjax is already populated from the kernel. If $isAjax is true, content will be served with the appropriate content type by the LEAP™ 5 kernel regardless of XML, JSON or JSONP datatypes.

Usage

local(q = isAjax)
#q

-> false

© Copyright LEAP™ 2017 | Privacy Policy | Design by Treefrog Inc.