Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Using defer to Stop onDOMReady Problems with Internet Explorer?   Message List  
Reply | Forward Message #33340 of 52114 |
Every now and then a message pops up on the mailing list suggesting
problems with onDOMReady in Internet Explorer. One of our product
teams has also experienced some problems. Unfortunately it seems
impossible to find a test case that demonstrates the problem, which
makes it pretty difficult to submit a useful bug (I could never work
out what was causing the problems we saw and the solution used was to
listen for the window load event instead).

It occurred to me that you could take advantage of the defer attribute
here (assuming your entire script is wrapped inside an onDOMReady
function) and that would effectively sidestep the issue for IE.

As an example:

http://www.rumsby.net/walter/examples/yui/defer.html

Now unfortunately this isn't a page that would have problems with
onDOMReady in IE anyway, but it appears to support my hunch.

What do people think of this technqiue? Pros? Cons? Thoughts? If
anyone has the IE onDOMReady problem, does this solve it?




Thu Jun 26, 2008 2:49 am

wrumsby
Offline Offline
Send Email Send Email

Forward
Message #33340 of 52114 |
Expand Messages Author Sort by Date

Every now and then a message pops up on the mailing list suggesting problems with onDOMReady in Internet Explorer. One of our product teams has also...
wrumsby
Offline Send Email
Jun 26, 2008
2:49 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help