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:
database size? (1997)
[WebDNA] Speed up XML parsing (2010)
webcatalog [date] bug (1999)
Proposed FormVariables hierarchy (2000)
[OT] Search Engine Tips (2003)
Problems appending to database (1997)
request for comment tag (1998)
Shopping problems with 2.1b3 acgi (1997)
[ListFiles] & [loop] (1998)
Stumpted Again (1997)
Multi-processor Mac info ... (1997)
Time to opensource? (2006)
Error 11 (1996)
SKU lookup (1997)
[WebDNA] When was autonumber added? (2010)
multiple record replace (2001)
HTTP header line is too long? (1997)
[WebDNA] OT - does anyone know how to get Fetch/BBedit to leave my last line-ending char intact? (2009)
Protect (1997)
Extended [ConvertChars] (1997)