Why don't you just use the drop down's value and never use the hidden
variable then? You could set the value as a string to pass more than one
value from the drop down.

On Tue, 27 Nov 2001, Lee Fuller wrote:

> Not netscape that I'm using.
> 
> But let me clarify, this is what I want to do, and maybe this will make
> more sense?
> 
> On the form I have created, it dynamically looks to see if there is more
> than one record in the db for a customer.  If so, rather than simply
> showing the name of the item, CF substitues a drop-down, listing all the
> items.  The issue is that this form shows the data for that item, so I
> want to be able to have them simply change the drop-down, which in turn
> causes the form to submit, thereby setting a hidden field holding the
> new item name, which then gets sent to the form, is picked-up and used
> as the new item to display.
> 
> Make sense?
> 
>       Lee
> 
> PS - We can take this off the list, if you like?  But I thought others
> might find it useful.
> 
> 
> > -----Original Message-----
> > From: Don Vawter [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, November 27, 2001 12:46 PM
> > To: CF-Talk
> > Subject: Re: OT: Ok.. JS gurus...
> > 
> > 
> > in netscape the select object doesn't have a value. could 
> > that be the problem.
> > ----- Original Message -----
> > From: "Lee Fuller" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Tuesday, November 27, 2001 1:38 PM
> > Subject: RE: OT: Ok.. JS gurus...
> > 
> > 
> > > Hmm.. Ok.. But when I do this, (changing the "formName" to 
> > the name of 
> > > the form, and the "dropName" to the name of the drop-down), it does 
> > > not seem to pass the value to the hidden field.  Should I 
> > not create 
> > > the hidden field ahead of time?
> > >
> > > Lee
> > >
> > >
> > > > -----Original Message-----
> > > > From: Alex [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, November 27, 2001 11:55 AM
> > > > To: CF-Talk
> > > > Subject: Re: OT: Ok.. JS gurus...
> > > >
> > > >
> > > > onchange="addhide(document.formName.dropName.value);"
> > > >
> > > > function addhide(VAL){ document.formName.hideName.value=VAL;
> > > > document.formName.submit();
> > > > }
> > > >
> > > > On Tue, 27 Nov 2001, Lee Fuller wrote:
> > > >
> > > > > Since we seem to be on the subject, I can't get anything to
> > > > work, and
> > > > > thought someone (prolly Dave <grin>) might have an answer
> > > > for this...
> > > > >
> > > > > Need to include a drop-down in a form that, when changed
> > > > (onchange),
> > > > > will add a hidden field to the form, and submit it immediately.
> > > > >
> > > > > Send me somewhere to find it.. That's ok! ;)  Just need to
> > > > figure it
> > > > > out.
> > > > >
> > > > > TTAIA
> > > > >
> > > > > Lee
> > > > >
> > > >
> > > 
> > 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to