[v. 0.5.5] MavSelectBox

a place to post your own scripts

Moderator: 1.2 Moderators

Forum rules
  • Each Script may have only one thread per mayor release.
  • The owner of the thread should keep the first post up to date (newest version, demo...)
  • The title should include the version -> "[v0.1] Nice mooPlugin"
  • see also the detailed Rules

[v. 0.5.5] MavSelectBox

Postby dcdustin on Fri Jan 23, 2009 3:17 am

MavSelectBox is a very customizable select box replacement. It supports keyboard shortcuts, and is nearly identical to native browser select boxes as far as user interaction goes. This allows for custom HTML in the options, and the display. Downgrades gracefully as well. Built against Mootools v1.2.1

Link and demo: http://maveno.us/library/public/mavselectbox/

Version 0.5.0 fixes a few bugs with multiple selections showing up under certain circumstances, and adds a way to add a container element, useful for placing the select menus in animations and the like.

Version 0.5.1 fixed the multi-selected bug

Version 0.5.5 fixed the IE scrolling bug, Contributed by Quentin. :)
Last edited by dcdustin on Tue Jun 09, 2009 10:24 pm, edited 2 times in total.
Censorship that comes from the outside assumes about people an inability to make reasoned choices -- George Carlin
dcdustin
mootools connoisseurs
 
Posts: 35
Joined: Sat Dec 27, 2008 12:34 pm
Location: Idaho

Re: [v. 0.4.9] MavSelectBox

Postby michalc on Fri Jan 23, 2009 9:34 am

Looks interesting. However (on Safari on Mac at least), I can't figure out how to close the menu once it's opened!

Michal.
michalc
mootools enthusiast
 
Posts: 179
Joined: Tue Dec 23, 2008 6:11 pm

Re: [v. 0.4.9] MavSelectBox

Postby dcdustin on Tue Jan 27, 2009 9:38 pm

Ahh! Yea, just noticed that... it was a problem with webkit browsers in general, actually. (safari, chrome, etc) for some reason when clicking on the link that is being used to display the selected option, it wasn't taking focus, hence the blur event never fired, and it wouldn't hide if you had click on it to show the menu. It is now resolved though. Thanks for reminding me! :)
Censorship that comes from the outside assumes about people an inability to make reasoned choices -- George Carlin
dcdustin
mootools connoisseurs
 
Posts: 35
Joined: Sat Dec 27, 2008 12:34 pm
Location: Idaho

Re: [v. 0.4.9] MavSelectBox

Postby gshape on Wed Mar 18, 2009 12:21 pm

Hi, I noticed a bug in ie7. If there is a scrollbar (when options are longer than what fits in a screen) and you click on it or move the scrollbar, options disappear.
Thanx for sharing!
gshape
 
Posts: 1
Joined: Wed Mar 18, 2009 12:14 pm

Re: [v. 0.4.9] MavSelectBox

Postby h-a-r-v on Wed Mar 18, 2009 2:31 pm

A bug in IE6: menu has an overlay problem - e.g. it's shown BELOW the original select menu.
h-a-r-v
mootools fan
 
Posts: 50
Joined: Mon Nov 10, 2008 7:05 pm

Re: [v. 0.4.9] MavSelectBox

Postby dcdustin on Wed Mar 18, 2009 5:21 pm

Thanks, gshape, and h-a-r-v, i will get both of those issues resolved in my next release. I appreciate you guys taking the time! ^_^
Censorship that comes from the outside assumes about people an inability to make reasoned choices -- George Carlin
dcdustin
mootools connoisseurs
 
Posts: 35
Joined: Sat Dec 27, 2008 12:34 pm
Location: Idaho

Re: [v. 0.4.9] MavSelectBox

Postby dcdustin on Wed Mar 25, 2009 12:07 am

Figured i would post a message i got from another user just in case someone else had the same question:

Any idea how I can get the last select in the array. I have elementSelect which is the current div.select-box , I need the last select. With something like
var lastselect = myselect[myselect.length - 1];



The get_options method handles selectors as an argument, so:

  1. selectBox.get_options('li:last-child');


will return just the last option element. I'm thinking there should be an easier way to do this though, maybe it would be wise to prefix all arguments with 'li:' so that you only have to do something like:

  1.  
  2. selectBox.get_options('last-child');
  3. selectBox.get_options('first-child');
  4. selectBox.get_options(5);
  5.  


so if the argument (or a list of arguments should be accepted, yes?) is an integer, just return that child, or something?
Censorship that comes from the outside assumes about people an inability to make reasoned choices -- George Carlin
dcdustin
mootools connoisseurs
 
Posts: 35
Joined: Sat Dec 27, 2008 12:34 pm
Location: Idaho

Re: [v. 0.5.0] MavSelectBox

Postby dcdustin on Mon Apr 13, 2009 7:42 pm

I have updated to v0.5.0. Changelog and information on URL. Thanks everyone for your input and encouragement!
Censorship that comes from the outside assumes about people an inability to make reasoned choices -- George Carlin
dcdustin
mootools connoisseurs
 
Posts: 35
Joined: Sat Dec 27, 2008 12:34 pm
Location: Idaho

Re: [v. 0.5.0] MavSelectBox

Postby bmontuelle on Fri Apr 24, 2009 2:24 pm

Thank you :) it works like a charm
bmontuelle
 
Posts: 3
Joined: Thu Dec 18, 2008 2:37 pm

Re: [v. 0.5.0] MavSelectBox

Postby dcdustin on Sat Apr 25, 2009 4:57 am

Thanks for the encouragement! Glad you found it useful. :)
Censorship that comes from the outside assumes about people an inability to make reasoned choices -- George Carlin
dcdustin
mootools connoisseurs
 
Posts: 35
Joined: Sat Dec 27, 2008 12:34 pm
Location: Idaho

Next

Return to Your Scripts

Who is online

Users browsing this forum: No registered users and 1 guest