We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Add-ons
Using MODX Add-ons
Search
isXhr snippet
13 Posts
Dash Media
Reply #1,
9 years, 11 months ago
isXhr
returns the `yes` value if the html request is a xhr/AJAX request, otherwise returns the `no` value
eg:
[[!isXhr? &yes=`<h2>[[*pagetitle]]</h2>` &no=`<h1>[[*pagetitle]]</h1>`]]