Thank you for the response. I sincerely appreciate it. I am using onload to load the javascript method on the image. The way I was able to resolve this issue is, I am verifying for img.complete and then copying the src and return the new object. So snippet:
[CODE=javascript]var newImageObj = new Image();
if (img != null)
{
newImageObj.src = img.src;
return newImageObj; //this object contains height...
User Profile
Collapse
-
-
img.height for Internet Explorer
Hi
Issue: IE 7/Win XP
Works for FF2.0/Win XP
I am loading bunch of images on web page, I am in need of img.height property but it is coming as 0 for the Internet Explorer 7. It works as expected for FireFox 2.0 and am I not sure how can I resolve the same. I am preloading the images as well but it is of no use. I am providing window.setTimeo ut for giving time for image to load but that does not help either. The
...
No activity results to display
Show More
Leave a comment: