I found that when I don't want to use Assets, the easiest way to do it is:

var img = new Image;
img.onload = function(){}
img.src = '...'

I know - very not mootoolsy, but it's extremely simple and does the just.

On Tue, Feb 1, 2011 at 5:40 PM, Tim Wienk <[email protected]> wrote:

> I don't get what you mean by "doing that for every image", but yea,
> I'd probably use Assets for that as well. You asked for a solution
> without Assets and said you are "doing it on the html that gets
> returned", though.
>
> Note the function you're attaching to each element can be the same
> function every time again, if that's what you mean. You could save a
> reference to both that function and the Request.HTML instance, and
> re-use them.
>
> Whatever works best for your situation.
>



-- 
Arieh Glazer
אריה גלזר
052-5348-561
http://www.arieh.co.il
http://www.link-wd.co.il

Reply via email to