OK, so these days having your internet cut isn’t as commonplace as it used to be, but it does happen and during those times you realise the beautiful place the internet has in your life. 🙂
Anyways, I can usually get by and continue with some offline coding, but there’s always that little occasion where you forget those commands in MooTools, and wish you could just pop onto the site and check it out.
When coding in mootools, a lot of function binding goes on in my case. In fact, pretty much every time I call a class method I want it bound to the class. Jan Kassens comes to the rescue with a simple method which enables your class functions to be bound upon initialization. If you find yourself using .bind(this) a lot, this could make your code much prettier.
Samuel Birch created a great image menu which can be found here at Phatfusion. I was upgrading some bits on a site for the lovely Mootools 1.2 release and as a result I had to make a small change to get imagemenu to work.
For those pages with loads of text a table of contents would be nice, with anchors located in relevant sections. Thing is that going through a page with thousands of words and headings is no fun at all.
I made a script using the lovely MooTools that gets all the elements with a given CSS selector (using the Elements.Selectors syntax) and then builds an unordered list of links, with the element text as the title, and an anchor placed in that element.
I love jscalendar… it’s dead easy to use, does what I want, is very flexible, and looks nice. Anyone that has a better free option, please let me know. MooTools (along with other JS libraries) have some cool implementations, but this script does stuff that others do not do.
When IE7 came out there was a bug in the calendar which essentially rendered the free version useless and therfore had me thinking of alternatives. Thankfully, this was soon resolved and I have been using jscalendar to this day.
A problem I came accross today is that the very cool aqua CSS theme that comes with the calendar didn’t work properly on KDE’s Konqueror.