Link | request_isajax |
Author | Jason Huck |
Category | Client |
Version | 8.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 01 Jun 2006 |
Updated | 01 Jun 2006 |
More by this author... |
Returns true if the request header specifies XMLHttpRequest. Requires [request_params].
if(request_isajax); ...do stuff for an ajax request... /if;
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;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft