RE: Is there a way to do this?

2008-07-07 Thread Rick Faircloth
regular gray backgrounds. Seems to work well... I'll have to see how users respond to this, however. > -Original Message- > From: Greg Morphis [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2008 4:34 PM > To: CF-Talk > Subject: Re: Is there a way to do this? >

Re: Is there a way to do this?

2008-07-07 Thread Greg Morphis
lected > item again after that. > > Guess that would work ok. > > >> -----Original Message----- >> From: Greg Morphis [mailto:[EMAIL PROTECTED] >> Sent: Monday, July 07, 2008 3:35 PM >> To: CF-Talk >> Subject: Re: Is there a way to do this? >> >&

Re: Is there a way to do this?

2008-07-07 Thread Ian Skinner
Rick Faircloth wrote: > I want the cities to stay in the same order as the query delivers them, > but with the first selected city on the top. > > It would be nice if there were some attribute of the select option, like > #city# so I could have that > option with "top" as an attribute "scroll" (not

RE: Is there a way to do this?

2008-07-07 Thread Rick Faircloth
would work ok. > -Original Message- > From: Greg Morphis [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2008 3:35 PM > To: CF-Talk > Subject: Re: Is there a way to do this? > > You could do something like (not tested) > select distinct city, orderby from ( > sel

RE: Is there a way to do this?

2008-07-07 Thread Rick Faircloth
that point. Thoughts? Rick > -Original Message- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2008 3:19 PM > To: CF-Talk > Subject: Re: Is there a way to do this? > > Rick Faircloth wrote: > > Thanks for the replies, Charlie and Brian..

Re: Is there a way to do this?

2008-07-07 Thread Greg Morphis
You could do something like (not tested) select distinct city, orderby from ( select city, 2 as orderby from table where city < foo_city union select city, 1 as orderby from table where city >= foo_city ) order by orderby, city that would tack the prior cities onto the end On Mon, Jul 7, 2008 at

Re: Is there a way to do this?

2008-07-07 Thread Ian Skinner
Rick Faircloth wrote: > Thanks for the replies, Charlie and Brian... > > Actually, I should have been more clear. > > I've got this code working, which "re-selects" all of the > selected citis: > > >session.city contains > #city#) or session.city is #city#> > #city# - #num_ci

RE: Is there a way to do this?

2008-07-07 Thread Rick Faircloth
w is to get the first selected item to display at the top of the list. Will that require javascript? jQuery, perhaps? Rick > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2008 2:33 PM > To: CF-Talk > Subject:

Re: Is there a way to do this?

2008-07-07 Thread Brian Kotek
This can be done using JavaScript. You can Google for form manipulation code or check out something like jQuery which would make resorting or modifying the select box quite simple and wouldn't require a request to the server. On Mon, Jul 7, 2008 at 2:24 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote

Re: Is there a way to do this?

2008-07-07 Thread Charlie Griefer
something like: selected="selected">#city# you'll probably have to throw a out there for the initial form display. getting the 2nd to display the appropriate cities will be a bit more work, and the answer will depend on how you're currently doing it. If it's javascript, you'll need to

Is there a way to do this?

2008-07-07 Thread Rick Faircloth
Hi, all... I'm using a dynamically populated select (multiple) allowing users to select one or more cities for which they'd like to view properties. When the form which contains the form is submitted, it submits back to the same page it's on. What I'd like to have happen in the select is for the