According to the documentation, the body of your ready function will execute when the DOM has loaded and is ready to traverse. The last two scripts manipulate the DOM, so I would put the ready function afterward so I could be more confident in the results.
This is a good area for experimentation. Try creating a simple function that toggles, say, a text style. Call your toggle function from inside a ready function and also put a copy in a <script src ... / > file, then move them around, changing the order of the <script src ... /> and the $(document).ready(). You might be able to learn something by doing that which you could share with us and get a deeper understanding of execution order with jQuery. On May 26, 3:22 am, kiusau <kiu...@mac.com> wrote: > QUESTION: What is the general rule for using the Ready function in > the presence of other Javascript? > > BACKGROUND: I have recently discovered that my previous problems with > the customization of the jQ Impromptu plug-in could be overcome > through isolation. In effect, I removed my script from the targeted > document, eliminated all of my self-created jQuery methods with the > exception of one, and tried the "package" in a different, separate > document. Everything functioned as intended. > > With renewed confidence I am now ready to return the "package" to the > originally targeted document. This is where you may be able to > help. > > Please examine the script below and note that I am using the Ready > function in combination with other script tags. I have organized the > script tags according to use or non-use with the Ready function. > Everything before the Ready function is called either directly or > indirectly by the Ready function. Everything after it is not. > > Do you see a possible source of error? > > <link href="../SpryAssets/SpryAccordion.css" rel="stylesheet" > type="text/css" /> > <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" > type="text/css" /> > <link href="../CSS/imagine.css" rel="stylesheet" type="text/css" /> > <link href="../CSS/jQ_Impromptu.css" rel="stylesheet" type="text/css" / > > <script src="../JavaScript/jQuery-1.3.2-vsdoc2.js" type="text/ > javascript"></script> > <script src="../JavaScript/errorMessages.js" type="text/javascript"></ > script> > <script src="../JavaScript/popUpBoxConfiguration.js" type="text/ > javascript"></script> > <script src="../JavaScript/jQ_browserIdentification.js" type="text/ > javascript"></script> > <script src="../JavaScript/jQ_Impromptu-2.5.js" type="text/ > javascript"></script> > <script src="../JavaScript/jQ_Imagine.js" type="text/javascript"></ > script> > <script src="../JavaScript/SVG_roundies_0.0.2a.js" type="text/ > javascript"></script> > <script type="text/javascript"> > $(document).ready(function() { > $('#today').toDate(); > $('#clock').JSClock(); > $('#duration').timePassed(); > $('body').SVG_RoundiesIntializer(); > $().getBrowserInformation(); > }); > </script> > <script src="../SpryAssets/SpryAccordion.js" type="text/javascript"></ > script> > <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></ > script> > > Roddy