[request_isajax]

Description

Link: [request_isajax]
Author: Jason Huck
Category: Client
Version: 8.x
License:
Posted: Jun. 01, 2006
Updated: Jan. 01, 0001
More by this author...
Returns true if the request header specifies XMLHttpRequest. Requires [request_params].

Parameters

none


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.
1
2
3
4
5
6
7
8
9
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

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net