$(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 <marino.pe...@gmail.com
<mailto:marino.pe...@gmail.com>> 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