[//lasso
/*----------------------------------------------------------------------------

[request_isajax]
Returns true if the request header specifies XMLHttpRequest.

Author: Jason Huck
Last Modified: Jun. 01, 2006
License: Artistic license <http://opensource.org/licenses/artistic-license.php>

Description:
Returns true if the request header specifies XMLHttpRequest. Requires 
[request_params].


Sample Usage:
if(request_isajax);
    ...do stuff for an ajax request...
/if;

Downloaded from tagSwap.net on Feb. 14, 2007.
Latest version available from <http://tagSwap.net/request_isajax>.

----------------------------------------------------------------------------*/
		

define_tag(
	'isajax',
	-namespace='request_',
	-priority='replace',
	-description='Returns true if the request header specifies XMLHTTPRequest.'
);
	request_params->find('X-Requested-With') == 'XMLHttpRequest' ? return(true) | return(false);
/define_tag;
]
