Re: Selected Item in Pop-down
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48479
interpreted = N
texte = At 9:27 AM -0600 3/5/03, Anthony Clark wrote:>Marc,>Thanks for the response. The problem is I can't figure out how to set up>the showif and selected attribute in the
tags to display the>category for the record I want to modify. I've got a field displaying>what the current category of that record is. The pop-down should display>all of the categories in the database, but have the particular category>for that record selected by default, so that if they don't want to>change the category, it leaves it alone. Do I make sense?If [db_category] contains the category for the record you are dealing with.. then[search db=categories.db&eqCATEGORYdata=find_all][founditems] [CATEGORY] [/founditems][/search] Enjoy!~joe-- ____________________________________________________________Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access WebCat and MGI database programming____________________________________________________________-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
At 9:27 AM -0600 3/5/03, Anthony Clark wrote:>Marc,>Thanks for the response. The problem is I can't figure out how to set up>the showif and selected attribute in the tags to display the>category for the record I want to modify. I've got a field displaying>what the current category of that record is. The pop-down should display>all of the categories in the database, but have the particular category>for that record selected by default, so that if they don't want to>change the category, it leaves it alone. Do I make sense?If [db_category] contains the category for the record you are dealing with.. then[search db=categories.db&eqCATEGORYdata=find_all][founditems] [url][CATEGORY][/url] [showif [url] [CATEGORY][/url]=[url] [db_category][/url] SELECTED[/showif]>[CATEGORY] [/founditems][/search] Enjoy!~joe-- ____________________________________________________________Joseph D'Andrea ~ http://www.west21.com/ ~ JoeDan@West21.com WEST21.com Internet services for the 21st Century webhosting ~ co-location ~ wireless access WebCat and MGI database programming____________________________________________________________-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Joe D'Andrea
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Force leading zeros (1998)
Is using [URL] recommended even on an email address? (1999)
Request for help on a new *automated* WebCatalog function ... (1998)
WebCatalog Hosting (1996)
WebCatalog2 Feature Feedback (1996)
Location of Browser Info.txt file (1997)
SMSI - MacWorld (2005)
[CART] (1997)
Sort Order on a page search (1997)
table import function crashes server (2008)
Format question WC Mac f3 (1997)
flushdatabases (1997)
Carrying over data? (1997)
WebCatalog can't find database (1997)
Re:Copyright ? (1997)
Need help with emailer- 2 issues (1997)
Practice runs ? (1997)
[protect admin] (1997)
Multihoming and webcat (1998)
attn: smitmicro - cart limitation (2002)