Lasso Soft Inc. > Home

[request_isajax]

Linkrequest_isajax
AuthorJason Huck
CategoryClient
Version8.x
Licensehttp://opensource.org/licenses/artistic-license.php
Posted01 Jun 2006
Updated01 Jun 2006
More by this author...

Description

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

Sample Usage

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

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

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;

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft