On Fri, Feb 4, 2011 at 10:51 AM, stratboy <[email protected]> wrote:
> Hi,
>
> load_image:function(){
> var img = new
> Asset.image(this.fake_data[this.image_index].src, {
> onLoad:function(img_tag){
> console.log(img_tag);
> this.image_index += 1;
>
> if(this.image_index <
> this.fake_data.length){
> this.load_image();
> }
>
> }.bind(this)//fine onload
> });//end asset
> }
>
> So, the problem here is that onLoad seems not to work. I'm doing
> something worng, I guess.
>
> http://reghellin.com/debug/image-preloader/
>
> You can see that the onLoad event (see console.log(img_tag);) will
> fire soon for all images, while in fact, images are still loading (see
> the net traces in firebug)
>
> Why?
>
>
works fine for me (ff 3.6 fb 1.6 win7)
--
Arieh Glazer
אריה גלזר
052-5348-561
http://www.arieh.co.il
http://www.link-wd.co.il