469,358 Members | 1,628 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

Manipulating the DOM during page load.

Hi,

With the Yahoo! UI Event library it is possible to poll the DOM as the
page loads for the appearance of a particular element. When that
element is found a callback function executes. In Flanagan's book he
warns that some JavaScript experts say this is bad practice because it
is not standardized. I've tried the YUI technique only a little and
like the idea for some pages to make certain parts interactive before
all pictures etc have been loaded. Does anyone here have info about
when this technique fails?

Thanks,
Peter

Dec 6 '06 #1
1 1111
Peter Michaux wrote :
Hi,

With the Yahoo! UI Event library it is possible to poll the DOM as the
page loads for the appearance of a particular element. When that
element is found a callback function executes. In Flanagan's book he
warns that some JavaScript experts say this is bad practice because it
is not standardized. I've tried the YUI technique only a little and
like the idea for some pages to make certain parts interactive before
all pictures etc have been loaded. Does anyone here have info about
when this technique fails?

Thanks,
Peter
I think it can lead to some misconception.
For example, you absoluty need to call a function as soon as the element is
loaded, but this function would call another one, whose job would be to inspect
the DOM structure. As the page isn't fully loaded, it can lead to some errors.

In fact, that doesn't happen everytime, but the fact that there MAY be a little
flaw is to take care of.

--
Naixn
http://fma-fr.net
Dec 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.