Lasso Soft Inc. > Home

[selection_box]

Linkselection_box
AuthorMarc Pope
CategoryCustom Tag
Version8.x
LicensePublic Domain
Posted04 Jul 2006
Updated04 Jul 2006
More by this author...

Description

Do you often find yourself making <select> objects over and over but then want to populate the "selected" part of the option statement automatically? Well, this tag is for you. I wrote this because I'm tried of hand-coding it all the time. I guess a more complex version could be made that would add the ability to have different values with the display value, but this works for most cases.

Sample Usage

Usage:

-name is the name of the select statement
-values is the values list of the options
-current is the current value

[selection_box: -name='subscribe', -values='Yes|No', -current='Yes']

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.

(split:'|');
	local: 'result'=(string);
	
	#result += '\r\n\r\n';
	
	return: @#result;
	
	/define_tag;
	
?>

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