yoink@tumblr ~ % date

27th January 2006

yoink@tumblr ~ % less 1138338000.txt

Supposedly Simple Javascript

I thought I was doing something dead simple (toggling the visibility of a div with a checkbox) but IE/Win had other plans. My little trick worked in Firefox, Safari and IE/Mac, but I got zip in IE6 on Windows. Really basic code too:

var target = getElementById('thesis');

After much searching, I figured it out on my own. IE/Win could not tell the difference between a form element named ‘thesis’ and a div with the id of ‘thesis’. So it got confused, and I got erratic behavior. When I changed the name of the div, everything worked fine.

yoink@tumblr ~ % notes -v $post