User Profile

Collapse

Profile Sidebar

Collapse
rajesk
rajesk
Last Activity: Mar 26 '08, 06:54 PM
Joined: Oct 15 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rajesk
    replied to img.height for Internet Explorer
    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...
    See more | Go to post
    Last edited by gits; Mar 26 '08, 10:33 PM. Reason: added code tags

    Leave a comment:


  • rajesk
    started a topic img.height for Internet Explorer

    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
    ...
    See more | Go to post
    Last edited by rajesk; Mar 22 '08, 07:46 AM. Reason: more details provided
No activity results to display
Show More
Working...