Bom dia senhores,
Estou com um problema em atualizar uma imagem via JavaScript, capturando o value do InputFile. Vejam o código:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<img src="default.gif" name="foto" width="120" height="120" border="0" id="foto"/>
<input name="arquivo" id="arquivo" type="file" src="" onchange="mudar()"/>
<script>
function mudar(){
document.getElementById('foto').src = "file:///" + document.getElementById('arquivo').value;
}
</script>
</body>
</html>
Alguém tem alguma idéia do que possa ser?