Send to Printer

blog

Dumb Mistake of the Day, Blog Edition

March 30, 2010 13:22:12.351

I noticed a couple of days ago that the category selection option wasn't working in WebKit browsers on this site; it seemed curious, since the same code was working over on my Cincom blog. Well - the issue was fairly simple. A while back I changed the way comments get added (I now include the comment box on any single post page). However, the only place I was assigning the user agent was in a bit of template associated with the old way of doing comments - which meant that I was never checking the user agent at all.

That hit the category selectors, as those boxes are Javascript driven, and the Javascript differs for IE6 and "everything else". So... I slapped the user agent check back in, and now it all works again.

posted by James Robertson

 Share Tweet This