Emulating nested optgroups in Django Forms

Some motivation Django has a field called ChoiceField which lets you very easily create a <select> dropdown in your forms. A great feature is the ability to transform nested choices into appropriate <optgroup> groups. For instance, the following code: …creates a field that when rendered looks something like this:   The HTML that Django produced looks […]

Textarea Line Count 1.4.1 released

I’ve released a minor update to Textarea Line Count. This release fixes two issues: Default options were not actually included in the plugin, although they are detailed in the documentation The plugin only took textareas as jQuery objects – it didn’t allow selectors (once again contrary to the documentation) You can grab the new downloads […]

jQuery UI 1.9 released, dialogWrapper still working!

jQuery UI 1.9 is finally here! What does that mean for dialogWrapper? Well, it would seem like the answer to that question is: nothing. A redesign of the dialog API is not present in version 1.9, and it doesn’t look like it will happen until the 2.0 release, according to the official site. The planned […]

New versions of Textarea Line Count, dialogWrapper, and wrapDetector

Changes, changes. I’ve just finished adding the grunt build system to all my JavaScript projects. This has made it so much easier to manage them. Now instead of manually generating the minified versions (copy-pasting to Google Closure Compiler), worrying about the license files being up to date, etc., I can issue a single command and […]

dialogWrapper 2.1 Released

IMPORTANT: Please read this blog post before updating. The latest version, by default, breaks compatibility with previous versions! I am happy to announce that dialogWrapper 2.1 has been released! Download/read about it at BitBucket: https://bitbucket.org/MostThingsWeb/dialogwrapper   What’s new? The biggest change is that all methods are now namespaced! For example, instead of writing: … by default […]

wrapDetector: Automatically detect word-wrappable characters

I’d like to announce my latest plugin: wrapDetector. wrapDetector is designed to do one thing: return a list of characters at which a line can wrap. I’ve created the project at BitBucket: https://bitbucket.org/MostThingsWeb/wrapdetector. If you find it interesting, give it a try. I look forward to hearing your feedback and suggestions.

Using Facebox in Greasemonkey scripts

In my Greasemonkey scripts, I sometimes find it necessary to alert the user in some way without using the alert() function. In any other web application, I would normally use Facebox, a wonderfully free jQuery plugin that displays Facebook style pop-ups. However, there are several obstacles to adding any (well, most) jQuery plugins to Greasemonkey […]