<img> complete property

Results 1 to 2 of 2

Thread: <img> complete property

  1. #1
    Join Date
    Dec 1969

    Default <img> complete property

    Hi and thanks<BR>I have a setup that uses an &#060;input type ="file"&#062; to get the local address of an image, then uses an onchange() to swap the image displayed, check its size and return true if its under xxxx bytes, ready to uplaoad it. Problem is, after I swap the image, then get the fileSize, the size is of the image that was there before. I tried using a loop until the complete property was true, but it seems to always be true. If I put an alert box between the image src=newsrc and the get fileSize it works OK. It seems to need time to load before I can get the size of the new image. Is there a way I can check the complete property before I get the new size? <BR>Thanks<BR>Zeg

  2. #2
    Join Date
    Dec 1969

    Default RE: <img> complete property

    Could you use the onLoad property on the image?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts