
August 14th, 2007, 12:12 AM
|
|
Registered User
|
|
Join Date: Aug 2007
Posts: 1
Time spent in forums: 19 m 5 sec
Reputation Power: 0
|
|
|
File object in VBScript
I try to put empty string in to textBox of file object.
=============================
My source code is
Code:
Original
- Code |
|
|
|
<HTML>
<HEAD>
<TITLE>Untitle</TITLE>
<SCRIPT LANGUAGE="VBScript" >
sub browse_onclick()
Set browseFileElement=document.getElementById("browseFile")
browseFileElement.click
end Sub
sub path_onclick()
Set browseFileElement=document.getElementById("browseFile")
browseFileElement.value = ""
end Sub
</SCRIPT>
</HEAD>
<BODY id="mainpage">
<INPUT TYPE=FILE name="browseFile" id="browseFile">
<INPUT TYPE=BUTTON name="browse" value="browse button">
<INPUT TYPE=BUTTON name="path" value="change path">
</BODY>
<HTML>
================================
I have tried to use browseFileElement.value = "" but it doesn't work at all. I can get path from that textBox by pass it to variable. For instance pathString = browseFileElement.value. I think that I have only read permission but I cannot write new value into that box. Any suggestion? Thank you for your help.
|