Comment #5 on issue 7731 by msilva.diego: Image onload event does not fire  
when loading an already loaded image.
http://code.google.com/p/chromium/issues/detail?id=7731

I got the same problem with Webkit based browsers (Safari/Chrome).
To solve it, I just pointed the src property to a void location, then I  
reloaded the
image (pointed the src back to the image).
That's what I did:

/* Here I previously loaded the image */

                        img.src = "";
                        img.addEventListener("load", myFunction, false);
                        img.src = "http://myImageSource.jpg";;







--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to