[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.
Wrong.
http://www.google.com/search?q=javascript+%22var+keyword%22
> 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.
Thanks,
--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
More information about the thelist
mailing list