This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening CHM file directly.  RSS feed

 
Dhanesh Chaudhari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created online help file for my application using winCHM. So basicallt its a .CHM file.

I have one hyperlink on my jsp page, namely "Help". Now I want to open the CHM file directly after clicking on the help link directly. Now when I click on the Help link on my jsp, it forces the user to download the CHM file first on local system( and that is the problem, I want to open it directly from remote location after clicking on the help link).

So, please help me.

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like any file type that requires and external application to open, (PDF, Excel, etc..) your users will need to have the required application installed and will need to have the association set up in their browser.

If it isn't there already, you'll need to add the mime type mapping to either your web.xml file and/or to the global list of mime types in your container.

If all that is done, you can suggest that the browser open the application from within the browser by setting the Content-Disposition header with the 'inline' attribute.

Is CHM a proprietary Microsoft Format?
If so, you might be shutting out users of other platforms (Mac, Linux, etc).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!