$(function() {.....}); is shorthand for $(document).ready(function(){.
>
> ....});whoa!..i wasn't aware of that..Thanks anyway. On Mon, Jun 22, 2009 at 3:05 PM, Liam Potter <[email protected]>wrote: > > $(function() {.....}); is shorthand for > $(document).ready(function(){.....}); > > Use this, it will check if the page content is loaded before firing. > > $(window).load(function() { > alert( "hello" ); > }); > > Prashant Khanal wrote: > >> i guess you should use $(document).ready(function(){.....}); >> but keep in mind this fires after DOM is loaded and before page contents >> are loaded. >> http://www.learningjquery.com/2006/09/introducing-document-ready >> >> On Mon, Jun 22, 2009 at 1:06 PM, Peter Marino <[email protected]<mailto: >> [email protected]>> wrote: >> >> Hi jQuery, >> >> I assumed when I used the >> $(function() { >> alert( "hello" ); >> }); >> >> that the page was finished loading? but what I see is that the >> popup alert comes before my images on my page >> are finished loading? is this correct? >> >> I need to do something to my page when everything is done >> loading.. how does one do that? >> >> Peter >> >> -- Power Tumbling - http://www.powertumbling.dk >> OSG-Help - http://osghelp.com >> >> >>

