Menu
Hi all,
I’m having a bit of a problem determining the offsetWidth of an image correctly in IE. It only happens when I try to load up a new image that hasn’t yet been cached by the browser. So when I load up a new image, append it to the page and try to get its offsetWidth (or height) the browser displays “offsetWidth = 0”. If I refresh the page and run the same script again I get “offsetWidth = 176”.
What could be the problem?
Any help is appreciated,
Nik