Publishing a MHT file

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Publishing a MHT file

Post by alex4orly »

I am saving a page from MS Word document into an MHT file

http://communitylifestyleaccommodation. ... ations.mht
When previewing the file on my desktop - it loads and looks OK in the browser (IE), but once I upload it and look at it on the website - in Chrome, it just shows the HTML code behind...

Any idea? Is only IE able to display this correctly?

Thanks
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Publishing a MHT file

Post by lummis »

A Google search reveals this
MHT files open in Internet Explorer or, with an add-on, in Firefox and some other browsers. MHTML Converter is one program that converts MHTML files to regular HTML.
But why use a MHT file?
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Publishing a MHT file

Post by alex4orly »

Hi Lummis,

MHT is a format that the client can produce by themselves from MS Word, then I provided them with an option to publish / upload it to their website. If document is saved as HTML, word splits that upon saving into two parts, the html file and a folder ...

I am looking for an online / live option to get the website itself to make such a conversion on-the-fly

Still looking....

Cheers
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Publishing a MHT file

Post by lummis »

Have you seen this freeware program - haven't used it but it looks as though it should be able to convert the MHT file to HTML - you may want to test the output beforehand though.
https://www.softpedia.com/get/Internet/ ... rter.shtml
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Publishing a MHT file

Post by alex4orly »

Thanks Lummis,

I know about this option, I am however looking for a script that can be run on the webpage to display / convert the mht file into an html file at runtime, avoiding the need for the visitor to the site or the customer doing an extra conversion step before uploading the file.

Thanks again
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Publishing a MHT file

Post by BaconFries »

Hi Alex, I don't know if it us possible to do with a script alone on upload. Have you considered using one of your favourite methods for displaying content... using a iframe. It may be possible to embed the .mht file into a iframe set at 100% to display the content. Just a idea that could be possible...
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Publishing a MHT file

Post by lummis »

You know your client better than me Alex, but if he is producing the MHT file, it is only one extra step to convert it. I would have thought that if he was made aware that the MHT format doesn't work and his website could be easily updated using the converter then that would be the way forward.

It most probably can be done with a script but I think that you will be spending an awful amount of time trying to find a solution and if you are charging out your time to the client then I am sure he would prefer to make the conversion himself. :)
Post Reply