
Open File Dialog in DHTML
Hi
I built a DHTML page which produced a (.dll) file and tried to open a file
and assign the text of the file to a text box (textarea) which I included
in my design.
It works fine when I run it from my PC. But when I run it on another PC it
fails, and I get a msg () and the Open Dialog box doesn't appear (I used the
setup wizard to install the application in the other PC)
The Code for the Open Dialog is
#####################################################
#Private Function Button1_onclick() As Boolean
#
#
# cmd.FileName = ""
# cmd.Flags = cdlOFNFileMustExist Or cdlOFNPathMustExist
# cmd.Action = 1
#
#
# If cmd.FileName <> "" Then
# Open cmd.FileName For Binary As #1
#
# Dim t As String
# t = String(LOF(1), 0)
# Get #1, , t
# S1.Value = t
# Close
#
# End If
#End Function
#
#####################################################
I don't know whether I am doing the right thing. All I want to do is to
create a page with a text box and a button which opens a text file and
assign it to the text box, and later on, put that page on my web-site
Thanks All
Dana