dropdown question

2010-11-08 Thread fun and learning

Hello All -

I have a dropwown with multiple option. When the user selects a value, goes to 
some other screen, and comes back he will be able to see the value selected. 
This is all fine. But if the user selects some last value in the dropdwon, he 
has to scroll down to see what has been selected. is there a way to make the 
dropdown scroll down to the last value automatically? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338948
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: dropdown question

2010-11-08 Thread Russ Michaels

you just need to set the selected item as selected in the dropdown

select name=acme
 option value=abc selectedtext/option
/select

when the user submit the form, just store the seelected value in a session
variable and use this to set the SELECTED attribute.

e.g.

select name=acme
 option value=abc #IIF(StructKeyExists(session,'acme'),
'selected',''))#text/option
/select




--
Russ Michaels
www.cfmldeveloper.com - Supporting the CF community since 1999
FREE ColdFusion/Railo hosting for developers.

blog: www.michaels.me.uk


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338949
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: dropdown question

2010-11-08 Thread fun and learning

you just need to set the selected item as selected in the dropdown

select name=acme
 option value=abc selectedtext/option
/select

when the user submit the form, just store the seelected value in a session
variable and use this to set the SELECTED attribute.

e.g.

select name=acme
 option value=abc #IIF(StructKeyExists(session,'acme'),
'selected',''))#text/option
/select




--
Russ Michaels
www.cfmldeveloper.com - Supporting the CF community since 1999
FREE ColdFusion/Railo hosting for developers.

blog: www.michaels.me.uk

Yes I am doing that with the help of some form variables. I am able to see the 
selected value. My question is - suppose there are 1000 values in the dropdown 
and the dropdown is of type 'multiple', and the user selected the 1000nd value, 
the drop down should be scrolled down to that value when the user does some 
other stuff and comes back to the screen. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338950
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: dropdown question

2010-11-08 Thread Russ Michaels

I don't know off the top of my head how to scroll select lists, but I would
say having a select list that big is a bad idea. It will be horrible to use,
who wants to scroll through 1000 options, plus this adds unnecessary size
and load time to your page.
What would be better is to have just selected options as checkboxes or
select list and a button to add new options, which can then use ajax or a
popup window and then have a filter of some kind to allow the user to find
the options they want without having to search through 1000 entries.

Russ
On Mon, Nov 8, 2010 at 4:49 PM, fun and learning funandlrnn...@gmail.comwrote:


 you just need to set the selected item as selected in the dropdown
 
 select name=acme
  option value=abc selectedtext/option
 /select
 
 when the user submit the form, just store the seelected value in a session
 variable and use this to set the SELECTED attribute.
 
 e.g.
 
 select name=acme
  option value=abc #IIF(StructKeyExists(session,'acme'),
 'selected',''))#text/option
 /select
 
 
 
 
 --
 Russ Michaels
 www.cfmldeveloper.com - Supporting the CF community since 1999
 FREE ColdFusion/Railo hosting for developers.
 
 blog: www.michaels.me.uk

 Yes I am doing that with the help of some form variables. I am able to see
 the selected value. My question is - suppose there are 1000 values in the
 dropdown and the dropdown is of type 'multiple', and the user selected the
 1000nd value, the drop down should be scrolled down to that value when the
 user does some other stuff and comes back to the screen.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338959
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: dropdown question

2010-11-08 Thread Dave Watts

 I don't know off the top of my head how to scroll select lists, but I would
 say having a select list that big is a bad idea. It will be horrible to use,
 who wants to scroll through 1000 options, plus this adds unnecessary size
 and load time to your page.
 What would be better is to have just selected options as checkboxes or
 select list and a button to add new options, which can then use ajax or a
 popup window and then have a filter of some kind to allow the user to find
 the options they want without having to search through 1000 entries.

Russ is exactly right here.

Don't put a thousand items in a select box. I wouldn't even put a
hundred in. That's not a practical interface to use.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338960
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


OT: Dropdown Question

2003-03-17 Thread Ciliotta, Mario
Hi,

I was wondering if anyone has an example or maybe a custom tag that I could use that 
would allow me to have a dropdown box on a page that if the option for the user to 
select is not there then the user can type something in the field.  I tried to leave a 
blank option out there but the blank option is selectable but not editable.  I have 
tried to search on Developer Exchange but I cannot find any.  I am sure there is one 
out there but I must be using the wrong search word.

Thanks

Mario

This message is for the named person's use only. It may contain sensitive and private 
proprietary or legally privileged information. No confidentiality or privilege is 
waived or lost by any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON 
or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve 
the right to monitor all e-mail communications through its networks. Any views 
expressed in this message are those of the individual sender, except where the message 
states otherwise and the sender is authorized to state them to be the views of any 
such entity.
Unless otherwise stated, any pricing information given in this message is indicative  
only, is subject to change and does not constitute an offer to deal at any price 
quoted. Any reference to the terms of executed transactions should be treated as  
preliminary only and subject to our formal written confirmation.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: OT: Dropdown Question

2003-03-17 Thread Scott Brady
-- Original Message --
From: Ciliotta, Mario [EMAIL PROTECTED]

I was wondering if anyone has an example or maybe a custom tag that I could use that 
would allow me to have a dropdown box on a page that if the option for the user to 
select is not there then the user can type something in the field.  I tried to leave 
a blank option out there but the blank option is selectable but not editable.  I have 
tried to search on Developer Exchange but I cannot find any.  I am sure there is one 
out there but I must be using the wrong search word.


Try a search in the developer's exchange for combobox since that I believe is the 
term for what you're looking for.
You'll get several hits for that, so maybe one will work for you.


Scott Brady
http://www.scottbrady.net/
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4