Link | client_postParam |
Author | Ke Carlton |
Category | Client |
Version | 8.x |
License | Public Domain |
Posted | 04 Oct 2008 |
Updated | 04 Oct 2008 |
More by this author... |
This is a modified version of Jason's client_param tag. It has the same functionality but only works with client POST parameters.
// grab the param client_postParam('test'); // count param count client_postParam('test',-count); // grab a specific instance of a param client_postParam('test',1);
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: 'postParam', -optional = 'key', -type = 'string', -optional = 'index', -type = 'integer', -namespace = 'client_', -priority = 'replace', -description = 'Equivalent of [action_param], only for [client_postParams].'; if:local_defined('count'); return(client_postParams->findPosition(#key)->size); else; if:local_defined('index'); protect; return(client_postParams->find(#key)->get(#index)->second); /protect; else; local('out') = array; iterate:client_postParams->find(#key),local('pair'); #out->insert(#pair->isA('pair') ? #pair->second | null); /iterate; return(#out->join('\r')); /if; /if; return(string); /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft