[thelist] JavaScript: Why can't this function see...

Matt Warden mwarden at gmail.com
Thu Mar 10 11:08:32 CST 2005

> > The JS is in the head. Any input is appreciated.
> 1 The page there does NOT declare calDiv globally.



> 2 You call ShowCalendar in CalInit BEFORE you define calDiv. Shouldn't take
> a rocket scientist to figure out that ShowCalendar will not have calDiv
> defined.

Your tone is not necessary. Not everyone has equal skill with
JavaScript (or anything, for that matter). Additionally, anyone who
programs knows that it's often easier for a second set of eyes to find
a mistake like this than the original author who is 'too deep' into
her own code. This list exists for questions just like Tom asked.


Matt Warden
Miami University
Oxford, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list