Menu List. Select Multiple without Ctrl+Click?

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 3rd, 2005, 10:10
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
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

  #2 (permalink)  
Old May 3rd, 2005, 17:25
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Interesting question. I'll play with is a little and see what I can come up with.
  #3 (permalink)  
Old May 3rd, 2005, 18:07
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
  #4 (permalink)  
Old May 9th, 2005, 11:10
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Hi. Ive had a play around but havent really got anywhere. I look forward to any futher suggestions

Andy
  #5 (permalink)  
Old May 9th, 2005, 13:38
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
use checkboxes instead?
  #6 (permalink)  
Old May 9th, 2005, 15:29
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #7 (permalink)  
Old May 9th, 2005, 21:31
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
  #8 (permalink)  
Old May 10th, 2005, 09:01
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Ok good point I will give it a go. Thanks for your time.

I gotta say i am liking this Forum >> Cheers

AK
Closed Thread

Tags
menu, list, select, multiple, without, ctrlclick

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 22:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43