Author
fake path error in jsp
vasanth raman
Greenhorn
Joined: Aug 13, 2009
Posts: 24
<html>
<head>
</head>
<script type="text/javascript">
function play()
{
var file=document.upload.vpath.value;
alert(file);
}
</script>
<body>
<form name="upload">
<input type="file" name="vpath"> <input type="button" value="play" onclick="play()">
</form>
</body>
</html>
this code perfectly work in windowsxp but not working in vista it shows the fackepath in java script
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
posted Feb 28, 2010 07:43:29
0
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
posted Feb 28, 2010 07:44:12
0
is it the same browser?
In any case, what do you mean by "fake path"?
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
There is no JSP dimension to this question. Moved to the HTML forum.
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
Misha Ver
Ranch Hand
Joined: Mar 03, 2008
Posts: 470
vasanth raman wrote: this code perfectly work in windows xp but not working in vista it shows the fackepath in java script
Windows XP or Windows Vista are red herring in your case. Most likely you have a problem with IE8, look at value property
Anbarasu Aladiyan
Ranch Hand
Joined: Jun 02, 2009
Posts: 182
Try after adding to your form tag.
A.A.Anbarasu
subject: fake path error in jsp