Using jQuery 1.4.2 from Google hosted Code.
Is there a reason why the following javascript does not fire all 3 document.ready functions when the document is ready?
you're missing a closing curly bracket and parenthesis in the second script tag
I can think of three forensic things to try, right off:
$(window).load()
for one or more
of your $(document).ready()
callback defs. They have different
firing criteria --
$(window).load()
waits for
everything to load up, allegedly --
but the substitution may be
revealing.Of course, console.log()
and alert()
will be your in-leu-of-debugger-breakpoint best friends in this case.
You are missing a });
in the end of the last $(document).ready
Once you correct this it should work
EDIT: Since you say now that each script tag is in a separate web part I believe the problem itself is not in the scripts. Something else in your page is messing up your code.