Lasso Soft Inc. > Home

[LI_URLRedirect]

LinkLI_URLRedirect
AuthorEric Landmann
CategoryUtility
Version8.x
LicensePublic Domain
Posted23 Jun 2008
Updated23 Jun 2008
More by this author...

Description

Creates a URL redirect link of $xDebug =Y, otherwise redirects. Has the ability to pass error messages and parameters. This is useful for troubleshooting when you need to see the values being passed through an URL.

Sample Usage

LI_URLRedirect: -Page='setup_editrecord.lasso',-ExParams=('DataType=Something'),-UseError='Y',-Error='1003',-Option='something', -UseArgs='Y';

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.

RemoveTrailing('&');
		#URL->(Replace: '?&', '?');

		If: $xDebug == 'Y';
			#Result = ('URLRedirect: '(#URL)'
\n'); Else; Redirect_URL: #URL; /If; Return: Encode_Smart(#Result); /Define_Tag; Log_Critical: 'Custom Tag Loaded - LI_URLRedirect'; /If; ?>

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