Marselle,

> Can any one please help me with doing a simple browse
> button in html that will launch the windows OpenDialog
> box. I need the box to default to the virtual
> directory for example I have a s:\files\webfiles on
> the server and I would like the user to be able to
> choose only .htm or .html files and once they click on
> the file I would like that webpage to open.. I already
> have all the .htm files created.. I just don't know
> how to do the code outside of Delphi.... 

There is no W3C browser standard that that would allow what you
describe. This is not an oversight, it is a deliberate restriction imposed
for security reasons.

What you need to do is write your own programs to launch the HTML
files using ShellExecute.

If distributing software to the target audience is not practical or desirable,
make a web page containing links or buttons which open the HTML pages.

If the HTML pages are dynamic, meaning you have a lot of new pages being
added and / or deleted, you could create a server side piece that serves up
a menu of the HTML files. This could be done in any server side method
supported by your web server. The only W3C standard for doing this is CGI,
which you can write in Delphi; or you can use ASP, PHP, etc.

If you do not have any experience with server side programming, you can
simply generate a new static HTML menu page every time any HTML file
is added or deleted. If your software is doing the adding and deleting of the
files, this should be a simple matter to automate. If you do not have control
over the adding and deleting of the files, I would write a Delphi program that
uses Shell Notification to monitor the directory and regenerate the menu
page whenever there are any changes.

Glenn Lawler



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h4bmar6/M=362131.6882499.7825260.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1123606231/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to