Method: r::is_ajax

Checks if the current request is an AJAX request

Info

Syntax

r::is_ajax()

Return (boolean)

Example


if(r::is_ajax()) echo 'ajax rulez';