Link | isAjax |
Author | Ke Carlton |
Category | Utility |
Version | 8.x |
License | Public Domain |
Posted | 03 Oct 2008 |
Updated | 03 Oct 2008 |
More by this author... |
Nah, seriously it will simply return true if the current request is an: AJAX, XHR, XMLHTTPRequest request made from the browser...
local('content') = 'Hello World'; if:isAjax; content_body = #content; else; content_body = ''#content''; /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', -description = 'Returns true if call is ajax'; return(client_headers >> 'XMLHttpRequest'); /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft