Is there a way to load an image locally (in the client) when a
selection of a file is made using input type=file.
The purpose is to allow selection of a file and put the image in the
browser without loading the reloading the page.
I thought about
1. putting a function call in the onchange event of the html input
field (the type of form field that allows selection of a local file
path)
2 In the javascript function, retrieve the value of the field and
3.Load the image by changing some image src property.
Basically i want to change the value of the image name and load it
w/out reloading the image based on a selection of an input/file-type
selection.
Thanks
selection of a file is made using input type=file.
The purpose is to allow selection of a file and put the image in the
browser without loading the reloading the page.
I thought about
1. putting a function call in the onchange event of the html input
field (the type of form field that allows selection of a local file
path)
2 In the javascript function, retrieve the value of the field and
3.Load the image by changing some image src property.
Basically i want to change the value of the image name and load it
w/out reloading the image based on a selection of an input/file-type
selection.
Thanks
Comment