how to fileupload using javascript? [Resolved]

Posted by Hariinakoti under JavaScript on 9/22/2012 | Points: 10 | Views : 1218 | Status : [Member] | Replies : 1
Hi,
as for my task i have one fileupload control,and textbox,one button is there .that is submit button.Now i'm uploading file select submit button.In that time i want that filepath is printed in another textbox.any body help me plz.

Thanks & Regards
Hari



Responses

Posted by: Hariinakoti on: 9/24/2012 [Member] Starter | Points: 25

Up
0
Down

Resolved
Hi,
i wrote code like this it is working in properly as for my requirement in IE.But i got result only filename in another browsers.I want same results in all browsers.
it is my code.
<script language="javascript" type="text/javascript">
function filepath(txtval) {
document.getElementById("txtpath").value= txtval.value;
}
</script>

Thanks & Regards
Hari

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response