// Interrupt the script to load the image
function foo () {
var imgdst = document.getElementById ('myimgbox');
myimgbox.src = '/img/loading.gif';
setTimeout(bar,50);
}
function bar(){
.
.
myimgbox.src = file.name;
}
- The file change but preserve his name
Code:
// A dummy url to force not using the cache
myimgbox.src = '/img/loading.gif&'+new Date().getTime();
Thanks by your answer and excuse me for making you spent your time.
I have not changed nothing and now it is working as expected. May be some weird issue with firefox that has dissapear after closing and opening it again.
Bookmarks