Got an odd problem here.
i have a radio array generated from server side. it queries for a filename and assigns that to the value of the radio control.
im using vbscript to access the array from the clientside to (as for testing purposes) msgbox the filename (or value) to the screen.
problem: when there is only one file in the array, it displays the file name in the msgbox fine. however, when there is more than 1 file it doesn't execute. i return an error message stating "object doesn't support this property or method. 'document.form1.OpenFile.Value'
Server Side code:
client side VB code
would it be better off in jscript? im not understanding what the problem is with returning the selected value.
Steve
everyday something new is learned, hmmm...
i have a radio array generated from server side. it queries for a filename and assigns that to the value of the radio control.
im using vbscript to access the array from the clientside to (as for testing purposes) msgbox the filename (or value) to the screen.
problem: when there is only one file in the array, it displays the file name in the msgbox fine. however, when there is more than 1 file it doesn't execute. i return an error message stating "object doesn't support this property or method. 'document.form1.OpenFile.Value'
Server Side code:
Code:
do until rsFil.EOF
filname = rsFil("Filename")
.Write("<tr><td> <a href=""\\dcsqldev\upload\" & filname & """>" & filname & "</a></td>")
.Write("<td><input NAME=""OpenFile"" id=""OpenFile"" type=""radio"" value=""" & filname & """></td></tr>")
rsFil.movenext
loop
client side VB code
Code:
<SCRIPT FOR="OpenFile" EVENT="OnClick" LANGUAGE="VBSCRIPT">
dim formPath
msgbox "hello"
formPath = document.form1.OpenFile.value 'stops here
msgbox formPath
</SCRIPT>
would it be better off in jscript? im not understanding what the problem is with returning the selected value.
Steve
everyday something new is learned, hmmm...