Viewing by month: December 2008
Turns out that CF is simply adding content to the head of the document as you call the CF code. This means that with the above code snippet, the registerOnLoad script was getting called before the other function in the code. Changing my CF to this fixed the issue:
I'm not used to thinking that hard about where I stick my cfhtmlhead tags. Guess I better pay closer attention next time.