Login  
Search All Forums
Dart Home | PowerTCP WebServer for ActiveX | Custom Development Reply | PowerTCP WebServer for ActiveX Topics | Forums   
AuthorForum: PowerTCP WebServer for ActiveX
Topic: Showing CHM files in a web server
BrendanM

From: Durban, South Africa
Posts: 80
Member Since: 07/11/02
posted June 28, 2006 8:07 AM

I have a VB app that hosts a Dart web server. Under the root web folder is a file called main.html that has the following lines.

<script>
window.showHelp('Node Manager.chm');
/*use the code below to close the window without prompting */
window.opener = top;
window.close();
</script>

The purpose of main.html is to launch MS html help with the CHM help file and then the browser closes. If I just open the main.html file in IE6 then all works fine. But if I GET main.html through my web server then IE seems to only display the raw data of the CHM file (just a whole lot of text characters). It does not seem to launch the MS html help at all. Any ideas what I am doing wrong or missing?

I can see the reqest for the 2 files coming into the GET event and for both requests I just return out of the event without setting anything for the Response object.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 30, 2006 10:18 AM

There must be an additional header line that IE adds when it detects it is sending a CHM file. You need to find out what's being added and add it to the response you send with the WebServer tool.

The best way to figure issues like this out is to inspect the data that is sent back and forth during a working session and comparing it to the data sent during a non-working session.

In the past, I have had good luck using sniffer utilities like HttpLook and Ethereal for jobs like this.
Reply | PowerTCP WebServer for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX