Re: QuickForm: design question regarding 3 level hierselect - how to add an "id=" option to each selection menu option
| From: | l Burnerheimerton | Date: | Mon, 01 Aug 2005 16:48:28 +0000 |
| Subject: | Re: QuickForm: design question regarding 3 level hierselect - how to add an "id=" option to each selection menu option | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20221@lists.php.net to get a copy of this message | ||
--- Justin Patrin <papercrane@gmail.com> wrote:
> On 8/1/05, l Burnerheimerton
> <lburnerheimerton@yahoo.com> wrote:
> > The code below shows what I am trying to do. It
> works
> > fine. I have a javascript link that takes the
> value
> > of the last selection menu, $policy, and opens the
> > details of the policy in a new window. The
> problem is
> > that the index of the policy starts at an index of
> > zero for all selection menus which does not
> reflect
> > the record ID of the record. I could choose to
> lookup
> > the record by title but the javascript in one line
> is
> > almost impossible to I am looking for a way to add
> an
> > "id=" option to each selection menu option which
> would
> > have the record ID so lookups would be much
> easier.
> >
> > Any ideas are much appreciated!
> >
>
> It sounds like you're trying to get the value of the
> select from your
> JS for a lookup.....Why not just get the value of
> the selected option?
>
> --
> Justin Patrin
After some experimenting, I finally figured a way to
do just that. The problem was the possibility of
single quotes in the lookup and I was trying to avoid
that. But there are none so I got it working - thanks
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs