I agree that is not the proper way to do it as download times very, and the time is takes to access the image properties may also very between different browsers. I was just trouble shooting, trying to see when the width/height properties of an image object become available (when image is fully...
Dan thanks for your suggestion.
I think using the image object method will solve my problem but it's not working properly in firefox. If I don't use the timeout function in javascript then firefox gives me the wrong width of 99...
How can I use some sort of callback to check when the image...
Hey,
I am trying to access the width variable from my main page. Within the imageinfo.js script functions I can alert() the width value which returns 1024. But I can't seem to pass this variable to my main page or access it directly so that I can use document.write() to write the variable on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.