D
Daz
Hi everyone.
I have cached an image by setting a variable to contain a new Image()
object with the src of the appropriate file. Rather than making a new
Image() object each time I want to use one, is there any way I can
duplicate it to use the same image, as using the 'new' keyword does
not work. The only other solution I can think of, is to create an IMG
element, and clone that, but surely I shouldn't need to. What I am
trying to acheive is to have images cached, but without relying on the
browsers caching abilities, should they happen to be non-existant or
disabled.
Perhaps I am not using the Image() object correctly, so any light
anyone could shed on this matter would be very much appreciated as
always.
All the best.
Daz.
I have cached an image by setting a variable to contain a new Image()
object with the src of the appropriate file. Rather than making a new
Image() object each time I want to use one, is there any way I can
duplicate it to use the same image, as using the 'new' keyword does
not work. The only other solution I can think of, is to create an IMG
element, and clone that, but surely I shouldn't need to. What I am
trying to acheive is to have images cached, but without relying on the
browsers caching abilities, should they happen to be non-existant or
disabled.
Perhaps I am not using the Image() object correctly, so any light
anyone could shed on this matter would be very much appreciated as
always.
All the best.
Daz.