Menu
My project involves selecting a local image and displays it locally before uploading.
The related javascript statements are as below.
function showPhoto() {
var str = document.getElementById(‘photo_T’).value
document.getElementById(‘showPic’).innerHTML
='<img src=”‘ + “file://” + str + ‘” height=”130″ style=float:right></img>’;
}
This is to get the photo image locally and to display it in Firefox browser for user’s decision whether or not he/she would go further for uploading.
Above code works fine and displays a perfect image with IE browser. But, it does not work with Firefox.
Any feedback or guidance will be appreciated.