Great! Thank you very much JQuery Lover!
Much appreciated!
On Jan 17, 2:52 pm, jQuery Lover wrote:
> Yeap, you can bind all images with .gallery class a .load() event like this:
>
> $('img.gallery').load(function(){
> $(this.).removeClass('loading').show();
>
> });
>
>
> Read jQuery HowT
Yeap, you can bind all images with .gallery class a .load() event like this:
$('img.gallery').load(function(){
$(this.).removeClass('loading').show();
});
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Fri, Jan 16, 2009 at 10:20 PM, jinscoe wrote:
>
> Whoops! I'm s
Whoops! I'm so used to getting email notifications for discussions...I
just figured no one had replied! So sorry for not coming back.
Thank you both for your replies. I was wondering if that might be the
case JQuery Lover.
Would there be a way to generalize the .load for only images with a
certa
Unfortunately it will not. jQuery will know that it is getting some
data and that is all. It does not know that it's html, xml or plain
text. Image loading is done by browser when you insert the markup into
the DOM. So the workaround would be to load your content then add it
to the DOM, bind count
Maybe you'll have more luck with this.
// display loading animation here
$("#ajax_content").load('/sourcefiles/example.html', {}, function() {
// hide loading animation here
});
However I'm still not sure if it will actually wait till images are
downloaded.
On Jan 14, 7:14 am, jinscoe wro
5 matches
Mail list logo