Dan Atkinson schrieb: > Ok. No worries. > > I just misunderstood the 'loading' text and thought % would be better. I > think it'd be too much unnecessary work to query it constantly and return a > value for it. The problem with 'loading...' images is that you don't know if > the loading has failed, and there's nothing in jQuery that I know which > returns a value for the amount of a file returned (although it would be > cool!).
There's an "abort" event, which only applies to object elements cording to the W3C DOM, but according to my reference it also applies to img elements and is fired if the img fails loading due to user interruption or other failure like a timeout caused by network traffic... Maybe you can use that to check the failed state and invoke a special action. I have never used it, so I can't tell from my own experience. The "error" event also applies to img elements and it is also fired if an error occurs during loading. -- Klaus _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
