Esoteric Javascript note

You would think that someone would have needed this functionality. In a nutshell, all I wanted to do was have a nifty little page where a user can select items from list a to be in list b. Then order th items in list b up and down. The same way you can choose news stories on or set up web pages for phone with SprintPCS’ manager (

So this pissy part has bene finding a way, in javascript, to tell the form that all the items on the list have to be posted to the next page. Is there a “selectAll” function? fsck no. You have to itterate through the entire list, marking each item as select.

If this weren’t bad enough, you also have to specify that it’s a multiple select list – *BEFORE* submission.

Anyway, that’s about 10 hours of hair pulling, doc reading, and teeth gnashing that’s done. And the client will be happy, I hope.

About Kevin Sonney

Kevin Sonney - who, contrary to popular opinion was NOT raised by wolves - grew up in central North Carolina. He fell into the technology field by accident in 1991, when he gave up the wild and crazy lifestyle of an on-air AM radio DJ to become a mundane technical support monkey. The technology industry has never really recovered from this. Kevin has worked for such names as IBM, Red Hat, webslingerZ, and Lulu Technologies (we won't mention the ones that didn't survive the experience). He currently works as a Linux Administrator for Apptio. In his spare time he rescues stray animals and plays video games with his two sons. His wife, we're sad to say, helps him get past the really hard bits. Kevin is still not very mundane, he just got better at hiding it.
This entry was posted in Uncategorized. Bookmark the permalink.