This is a discussion on "Menu List. Select Multiple without Ctrl+Click?" within the JavaScript Forum section. This forum, and the thread "Menu List. Select Multiple without Ctrl+Click? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Menu List. Select Multiple without Ctrl+Click?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Menu List. Select Multiple without Ctrl+Click?
I have a standard scrolling menu list in dreamweaver.
The user can select multiple by ctrl+click. To make this idiot proof can ctrl+click be changed to just single clicks? If not any sugestions with regards to Javascript are welcome |
|
|
|
|||
|
Interesting question. I'll play with is a little and see what I can come up with.
|
|
||||
|
This is possible with JavaScript... you would need to maintain an array of selections and update the select box with every click. Clicking on a selection already highlighted would obviously need to deselect.
Interesting challenge... should be straight forward though. I wont bother writing it, coz Catalyst should have something pretty soon.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Hi. Ive had a play around but havent really got anywhere. I look forward to any futher suggestions
Andy |
|
|||
|
use checkboxes instead?
|
|
|||
|
Could do. Problem is I have four fields with 6 - 12 options in each. If I break all these up chaos will ensue!
- I have inceased the size of each field so more options are visible, and included an instruction in the first option: 'Ctrl+click for Multiple' My client just asked: Can I have just single clicks instead of ctrl+click? A simple enough request I thought, but it appears to be a default setting, tricky to overide. AK |
|
|||
|
I spent about an hour digging into overriding event handlers to get this to work, it's pretty technical and I haven't gotten it to work so far.
I agree that checkboxes would be far easier, and you can put them in a scrolling DIV using overflow:auto to make it look and scroll like a select box. It's pretty cool actually, and simple. |
![]() |
| Tags |
| menu, list, select, multiple, without, ctrlclick |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2 Drop down list - auto select depending on choice from first list | ciaranleeper | JavaScript Forum | 0 | Mar 26th, 2008 10:38 |
| Select records based on multiple conditions - need help | Love2Java | Databases | 9 | Oct 29th, 2007 14:37 |
| Alignment issue in table with multiple select | peacher | Web Page Design | 2 | Aug 23rd, 2007 07:35 |
| how to submit all items from a multiple select control to an | andrew_perez5 | Classic ASP | 6 | Jan 5th, 2005 13:28 |
| Editable select list? | pmichael | Web Page Design | 2 | Sep 26th, 2003 06:29 |