Page 1 of 1

preview image before upload

Posted: Wed Oct 08, 2008 2:05 am
by mit
i need to preview images before submitting them ,so how can i do it before submitting them to data base?
any idea? how can i use ajax to solve this ?

Re: preview image before upload

Posted: Wed Oct 08, 2008 2:57 am
by onion2k
mit wrote:how can i use ajax to solve this ?
That's an odd question. Why do you want to solve an entirely clientside problem with AJAX?

Re: preview image before upload

Posted: Wed Oct 08, 2008 3:01 am
by mit
so what other method do u suggest to solve it?!
i ve used
function preview(what){
document.getElementById("previewField").src=what.value;

but it s only working in old IE version ...