/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] IE6 sends out DOM ready too early and causes problems

Hi guys, I’m using a script that I purchased from someone, and it has issues with loading data from jquery/json using a YUI script to load data once DOM is ready. The problem being that IE6 sends out the command stating DOM is ready too early, and the user’s content never gets loaded properly.

YAHOO.util.Event.onDOMReady(getFeatured);
YAHOO.util.Event.onDOMReady(createList);

Here are the two commands that set off a chain of events to load their data, but if these two fail, nothing works.

Let me know if you have any ideas for fixing this. 🙂 It works fine in Firefox, of course.

Thanks!

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangJul 23.2008 —  I'm using a script that I purchased from someone, ...[/QUOTE]This is the person you should be asking.

For anyone to help you we would need to see the full document or a link.
Copy linkTweet thisAlerts:
@davidjnelsauthorJul 23.2008 — Actually anyone who has decent knowledge of this type of thing and can read the text I posted should be able to help.

I need an alternative to YAHOO.util.Event.onDOMReady that will work in MSIE.
Copy linkTweet thisAlerts:
@FangJul 23.2008 — Try using this instead:YAHOO.util.Event.addListener(window, 'load', getFeatured);
YAHOO.util.Event.addListener(window, 'load', createList);
Copy linkTweet thisAlerts:
@davidjnelsauthorJul 23.2008 — That did it! Great, thanks!

Thanks for the help.
×

Success!

Help @davidjnels spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...