Archive for the ‘selectList’ Category

SelectList 0.6.1

Tuesday, March 12th, 2013

A few days ago, I have put a new minor version of selectList up on GitHub and on jQuery Plugins site, and today I’ve also made it available for download here on my website.

This version is actually identical to the previous one (0.6.0), the only difference is that now the zipped distribution package on jQuery Plugins comes with the minified version, in addition to the full source code. I realized that, since the package is basically a snapshot of the GitHub repository, the minified file was not included, because I wasn’t keeping it under version control (it was only available in the distribution zip archives here on my site). Now that’s fixed, and you’ll be getting the full package from jQuery Plugins.

SelectList 0.6

Tuesday, February 19th, 2013

I released a new version of selectList, the multiple selection jQuery plugin. This version introduces jQuery 1.9 support, and you can get it from the project homepage, jQuery plugins (did I mention I’m happy the plugins site is back?), or from GitHub.

By the way, this release is the first one that I made with Grunt, the JavaScript build tool. My previous, homebrew solution for building jQuery plugins involved shell, Perl scripts, and Java, all duct taped together with a Makefile — and was exactly as horrible as it sounds. Grunt made the build process a lot more straightforward, and, hey, it’s all JavaScript now! If you’re a JavaScript developer, I wholeheartedly recommend you give Grunt a shot.

SelectList 0.5.1

Saturday, August 18th, 2012

I have just released a new version of selectList. It turned out the previous release that I announced a couple days back had a bug that broke the jQuery .val() method for regular (non-selectList) select elements and made it impossible to set their values. This release fixes that.

The bug was spotted and reported by James White — thanks!

I also used this as an opportunity to test the plugin with the latest 1.8 release of jQuery, and all the tests passed with flying colors (yay!), so version 1.8 is now bundled with the plugin.

SelectList with Bootstrap Flavor

Sunday, July 29th, 2012

While working on the latest release of selectList, I got the idea of making a Bootstrap skin for it. I’ve been using Bootstrap in a few projects lately, and I like the cleanliness and consistency of its UI design, so I thought it would be nice to have a version of selectList ready to be used with it.

I made a simple page demonstrating what I came up with. In case you’re too lazy to visit that link, here’s a picture:

The Bootstrap style CSS file will probably be included in the next release. For now it’s up on GitHub, so go get it from there if you’d like to use it. Any feedback is most welcome.

SelectList 0.5

Friday, July 27th, 2012

In between the loads of work that is my day job, I finally found some time to get back to working on my jQuery plugins. As a result, I’m releasing a new version of selectList, the nice and friendly multiple selection plugin.

This version brings one major addition, and that is support for setting values using jQuery .val() method. You can call it just like you would do with a regular multiple selection element:

$("select#sports").val(["tennis", "basketball", "synchronous swimming"]);

This was requested by a number of people, so it’s finally there and I hope it will be useful.

The plugin now requires at least jQuery 1.6, as it makes use of the valHooks feature introduced in that release (and that’s the main reason why I bumped the version number up to whopping 0.5).

The plugin is available here on my site and on GitHub. Sadly, it’s not available on the good old jQuery Plugins website anymore, as that site is now gone forever, with all of its contents lost.

SelectList 0.4.2

Sunday, July 31st, 2011

I have released a new minor version of selectList. It introduces a small feature that was requested by a few people, and that is the ability to easily remove all selected items. Before this release, this was possible, but unnecessarily complicated. Now, it’s just a matter of calling the remove() API method with no arguments:

$('select').selectList({ instance: true }).remove();

As always, thanks for everyone’s feedback.

SelectList 0.4.1

Wednesday, March 30th, 2011

A new version of selectList has just been released and is available for download. This is a minor release with no new features, but it fixes a major issue that made the plugin fail in Firefox 4. I finally found enough time to work on it, and I’m happy to announce the new version works fine in the hot latest release of Mozilla’s browser — as depicted by this part of the test results table:

As usual, thanks to all the people who reported the issue.

SelectList Available on GitHub

Thursday, December 30th, 2010

With the last update to selectList, I made the plugin code available on GitHub. A few people have requested this, so there it is — go and grab it, fork it, or do whatever you can imagine with it.

My other projects will probably follow — however, I’m not migrating them to GitHub, I’m just using it as another means of making my code available to the world. Everything will still be hosted here on this website, and being the cloud-phobe that I am, I don’t expect this to change anytime soon.

SelectList 0.4

Tuesday, December 21st, 2010

SelectList 0.4 has just been released. This is a major update which introduces a different (better) approach to how the original multiple selection element is handled and how the plugin stores the selected options.

In the previous versions, the multiple select element was transformed into a single selection drop-down list by stripping off its multiple attribute, so there was no multiple select in the document anymore, and the selected options had to be stored in a series of type="hidden" input elements. However, this turned out to cause significant problems with obtaining the selected values with the core jQuery .val() method, and with serialization through .serialize().

I modified the code so that the original multiple selection element stays hidden in the document and continues to serve as a container for the selected options. This way the .val() and .serialize() methods are unaffected and can be used in the conventional manner.

This solution also has a few drawbacks (for example, it makes validation a bit more complicated), but it’s much easier to work around them than dealing with the quirks of the previous method.

The new version works with jQuery 1.3.2 up to 1.4.4. Oh, and the refactoring also happened to have made it smaller than the previous version.

SelectList 0.3.3

Thursday, September 30th, 2010

A new minor release of selectList is out, fixing a bug with incorrect handling of special characters in item names. Thanks to Sung Pae for reporting it and suggesting a solution.

  • Archives

  • Categories

  • Meta

  • Latest Tweets

    Warning: Illegal string offset 'last_access' in /usr/local/www/ on line 334

    Warning: Illegal string offset 'time_limit' in /usr/local/www/ on line 334

    Warning: Illegal string offset 'last_access' in /usr/local/www/ on line 336

    Warning: Illegal string offset 'twitter_api' in /usr/local/www/ on line 234

    Warning: Illegal string offset 'user_token' in /usr/local/www/ on line 262

    Warning: Illegal string offset 'user_secret' in /usr/local/www/ on line 263

    Warning: Illegal string offset 'consumer_key' in /usr/local/www/ on line 264

    Warning: Illegal string offset 'consumer_secret' in /usr/local/www/ on line 265

    Warning: Illegal string offset 'twitter_username' in /usr/local/www/ on line 270

    Warning: Illegal string offset 'show_retweets' in /usr/local/www/ on line 272

    Warning: Illegal string offset 'exclude_replies' in /usr/local/www/ on line 275

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/ on line 282

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/ on line 350

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/ on line 351
    Twitter outputted an error:
    Warning: Illegal string offset 'time_format' in /usr/local/www/ on line 484
  • Follow odyniec on Twitter