Randomness for you since 1976
I am primarily a Ruby on Rails developer now, but even before that I had began to leverage Prototype into my PHP applications to make UI design easier. One of the things that bugs me about the Prototype library is that if you load an element with the default CSS ‘display’ value of ‘none’, you have to use the hide/show functions to toggle it’s display. That means finding some way to conditionally determine the state and choose which function to call. Who has time for that? Not me, enter my little addition to Protype toggleDisplay:
I entered this code in directly between “toggle:” and “hide:” in “Object.extend”, around line 860. This was done in Prototype version 1.4.0.
Man, I need a better code highlighting formatting widget thingy. I guess I should upgrade this old and busted installation of WordPress to Version 2. I’ll do that now!
This blog is a dumping grounds for my experiences as a web developer, a parent, an artist, a writer and a human being. Maybe someday there will be something here that is worth your time, some sort of useful information or words that piece your very soul. Probably not though.
Leave a reply