Image doesn't load when innerHTML changed
I'm trying to write function that will display some text and image by changing innerHTML of div element.
The function is:
When I run this function, I see message and broken image in FireFox. I checked code and image URL like ten times, it should work, but it doesn't.
document.getElementById('image').innerHTML = "<span class='style'>Uploading photo, please wait...<img src='http://www.example.com/img/wait.gif' id='waitImage' width='32' heght='32' /></span>";
How can I fix this?