I appreciate all the responses to my earlier post about accessing
named elements. However, I'm still wondering about my actual problem,
which is that I need to initialize some arrays of named elements when
the document is loaded so they can be used by other functions used as
event handlers. What I have now is that every function that requires
these arrays checks to see whether they have been initialized, and if
not initializes them. That seems to be a fairly ugly hack, and I'd
like to use a better way if it exists. Does that make sense?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
named elements. However, I'm still wondering about my actual problem,
which is that I need to initialize some arrays of named elements when
the document is loaded so they can be used by other functions used as
event handlers. What I have now is that every function that requires
these arrays checks to see whether they have been initialized, and if
not initializes them. That seems to be a fairly ugly hack, and I'd
like to use a better way if it exists. Does that make sense?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Comment