Here is an example... http://216.136.31.164/jsarray.htm
You could go one further and populate javascript arrays with all of the addresses they have and then populate the fields with the array values depending on what they selected. jon ----- Original Message ----- From: "Douglas L. Brown" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 12:42 PM Subject: Re: Form problem > Well I am trying to get away from the reload action, I want it to be as fast > as possible for the user. > > > > Doug > > > ----- Original Message ----- > From: "Jon Hall" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Tuesday, November 13, 2001 9:29 AM > Subject: Re: Form problem > > > > I'm assuming that when they select a different address from the dropdown > you > > submit to the page again and query out the values for that address. So why > > not just do the query for something that will never return a record when > > they select new? Since CF will always populate a query that returns no > > records with null values you could just keep the code the way it is and > let > > the fields be set as nulls. > > > > jon > > ----- Original Message ----- > > From: "Douglas L. Brown" <[EMAIL PROTECTED]> > > To: "CF-Talk" <[EMAIL PROTECTED]> > > Sent: Tuesday, November 13, 2001 12:08 PM > > Subject: Form problem > > > > > > > I have a shipping form for an e-commerce site and have a delima. The > > > form is populated from a query that grabs the last shipping address that > > > the customer used. I have a dropdown on the page now that gives the user > > > the option to choose from the list of addresses they have used in the > > > past, and have an option for "NEW". I need to be able to clear the > > > fields in the form when they select new from the dropdown. Will it be > > > best to populate the dropdown from a structure and have the new element > > > be blank? > > > > > > > > > Doug > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

