Hi,

I need to show a gif in an image element until some process is done, so my function looks like:

Code:
function foo () {
	var imgdst = document.getElementById ('myimgbox');
	myimgbox.src = '/img/loading.gif';
.
.
.
        myimgbox.src = file.name;
}
The problem is that the /img/loading.gif image is never shown, it seems like it weren't refreshed when set, but just when the function ends.

So, is there anymanner to force the refresh of the image element inmediatetly after myimgbox.src = '/img/loading.gif' ????

TIA,