As far as I know, document.ready will execute functions right away if
the dom is ready.
Also you can use: if( jQuery.isReady ).
On 6 mar, 17:46, Iair Salem [EMAIL PROTECTED] wrote:
Hello everyone, I have a problem
The basics:
$(document).ready(function(){alert(DOM Loaded)});
Sorry about not being so clear: what I exactly want is to know if
window has loaded. I need to be sure if all the IMAGES had been
loaded, that's why jQuery.isReady is useless for me. jquery.isReady
equals true when DOM is loaded, but not the images.
I hope someone could help me.
Iair Salem.
PD:
Why not just set a globally available flag?
script type=text/javascript
var _PageIsLoaded = false;
$(window).load(function(){
_PageIsLoaded = true;
);
/script
Now _PageIsLoaded will tell you if the page is loaded or not
Use the good old load event.
$(window).load(function () {
// run code
});
( from http://docs.jquery.com/Events/load )
Karl Rudd
On Fri, Mar 7, 2008 at 11:10 PM, Iair Salem [EMAIL PROTECTED] wrote:
Sorry about not being so clear: what I exactly want is to know if
window has loaded. I
@MorningZ, Karl:
You're right, in fact, in my first message I pointed exactly what you
did. But I also pointed that:
This will workaround the problem and fix it partially (because in
theory this won't work when loading scripts dinamically)
If someone has a better solution, please share it with
This may be out of left field from what you're asking but I wrote a script
called onImagesLoaded, with a tolerance setting. I used this to fire the
jquery.flash.js script only after most of the images had been downloaded.
Some sites I've coded were overly image-heavy with the Flash at the top
This is great! Could you possibly show me an example of this online?
On Mar 7, 12:12 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote:
This may be out of left field from what you're asking but I wrote a script
called onImagesLoaded, with a tolerance setting. I used this to fire the
jquery.flash.js
Iair,
so what you are saying is that you want to know if, at any point in
time, there are any page elements that are still loading?
for example, if a mouse click appends a script to the page you need to
know if the script has loaded or not?
If that's the case, then I've been also trying to get
Sure, here you go:
http://www.lawcrime.com/
JK
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris J. Lee
Sent: Friday, March 07, 2008 10:13 AM
To: jQuery (English)
Subject: [jQuery] Re: How to know if the entire page has loaded, AFTER it
9 matches
Mail list logo