Re: Problem with pull down menu

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21854
interpreted = N
texte = On 12/15/1998 1:31 pm, bradeisenberg@iname.com so noted...>I have a search on one page that will find certain items, the on the next >page I have a pull down menu that lists the item Titles [Title], my >problem is that I can figure a way to have the [Brand] info for the exact >[Title] that is chosen by the pull down menu sent as well. I am able to >get all the [Brand]s sent but not the one just for the [Title] from the menu. > >here is my code. >
>
> >select a shirt > > > > > >Again, I would like the [Brand] data for the [Title] chosen to be sent only.If I understand correctly, your [founditems] loop will find [title] and the corresponding [brand]. You could combine both in your menu, separated by some delimiting character that doesn't appear in the text of either like an asterisk ( * ) and separate them out when the form gets processed.
select a shirt Then, at the start of your details.tpl you would have the following:[listWords words=[titleBrand]&delimiters=*] [showif [index]=1][text]title=[word][/text][/showif] [showif [index]=2][text]brand=[word][/text][/showif] [listWords]>From then on, [title] and [brand] will be available to your template. I imagine if you used three unique delimiters, you could use [middle] to separate the items back out (which will be left as the proverbial lesson to the reader ; )Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Problem with pull down menu (Rob Marquardt 1998)
  2. Re: Problem with pull down menu (PCS Technical Support 1998)
  3. Problem with pull down menu (bradeisenberg@iname.com 1998)
On 12/15/1998 1:31 pm, bradeisenberg@iname.com so noted...>I have a search on one page that will find certain items, the on the next >page I have a pull down menu that lists the item Titles [Title], my >problem is that I can figure a way to have the [Brand] info for the exact >[Title] that is chosen by the pull down menu sent as well. I am able to >get all the [Brand]s sent but not the one just for the [Title] from the menu. > >here is my code. >
>
>[cart]> >select a shirt > > > > > >Again, I would like the [Brand] data for the [Title] chosen to be sent only.If I understand correctly, your [founditems] loop will find [title] and the corresponding [brand]. You could combine both in your menu, separated by some delimiting character that doesn't appear in the text of either like an asterisk ( * ) and separate them out when the form gets processed.
[cart]> select a shirt Then, at the start of your details.tpl you would have the following:[listWords words=[titleBrand]&delimiters=*] [showif [index]=1][text]title=[word][/text][/showif] [showif [index]=2][text]brand=[word][/text][/showif] [listwords]>From then on, [title] and [brand] will be available to your template. I imagine if you used three unique delimiters, you could use [middle] to separate the items back out (which will be left as the proverbial lesson to the reader ; )Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Rob Marquardt

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:

Catalogs and W* (1996) CyberCash not responding (2003) Password Authentication - request example (1998) BUG in [showif] using ^ (contains) (1997) AppleScript question (1997) b18 problem on NT 4.0 (1997) [WebDNA] ENCRYPTION problems (2012) [HIDEIF] inside [FOUNDITEM] (1997) Multiple prices (1997) Zip Code Search (2000) Make sure I understand this??? (1997) Firesite cache vs webcat cache (1997) categories (1997) Checkboxes on forms?? (1998) [WriteFile] problems (1997) Emails stuck in emails folder (2003) bannerads example idiot (1997) Webcatalog quitting (1997) Spontaneous Errors (2004) MacAuthorize order data fields WAS:How To question... (1997)