.mht file not diaplaying correctly on client pc

Say,
1. Can you tell me more about .mht files and their universal compatibility across web browsers and OS's?
2. Why does the attached screen shot result on clients pc, but on many other its fine. Client has Win7 with IE8.
mht.docx
shaunwinginAsked:
Who is Participating?
 
khairilConnect With a Mentor Commented:
hi,

If it is ok, can you please attach the mht files here? Having this file will help experts here to help you.

The error might be related to few reasons:
1. The images was loaded using javascript, so when it is not saved with mht files
2. The page is ajax page, which have same impact of number 1
3. Security setting on client PC that prevent some element to load or execute which you need to "Unblock" the mht file first.

 blocked
0
 
mars-vieCommented:
It looks to me as if a firewall (or IDS) is blocking access to image files, which reside on an internet server.
0
 
shaunwinginAuthor Commented:
Tx...can you tell me more about .mht files please?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
khairilConnect With a Mentor Commented:
Basically mht files is text file, encoded with base64 - same like email. It is the way Microsoft did to put all the webpage resources html, css, js, vbs, images into single files. The resources usually have hard links inside the web pages, eg: <img src="\test.png"> or <script src="/scripts/test.js" type="text/javascript"></script>

however, in modern web page development, especially when AJAX comes. Most on the element is "written" on the fly into browwer canvas, which means code inside the html is calling other resources to build the page. So the complex pages seems to have "lesser" html tag because most of it have been done by javascript code. eg: <body onload="update_widget_frame(8, '/system/widget/sessions', 0);" class="main" style="border: 0; margin: 0;"> draws graph of active computer.

In this matter, the resource is not save together with the files as the files only contains code, but not hard link. IE will not parse thru all the javascript code to allocate any resource used by the page.

What happen when this saved mht got loaded into IE? IE will render back all the html tag and try to run the code. If the code try to locate relative source like image, which usually indicate by "/whatsoever/test.png" it will failed. But it might be success to call the absolute path to the resource, "http://myserver/whatsoever/test.png", because the file is located in the right place, the Internet.

Executing code inside mht file will introduce another problem as Microsoft put more retrictions on the name of security. IE will not run the code from mht file that load locally like from c:\user\khairil\desktop\myfile.mht. So IE will failed to render the page correctly until it got right permission to execute code embedded inside mht file, and the code can allocate the availability of other needed resource locally or thru internet.
0
 
jcimarronCommented:
shaunwingin--I did not tell you about the compatibility of mht with various browsers
http://www.coolutils.com/Formats/MHT
0
 
shaunwinginAuthor Commented:
Tx this all helps.
I'm rending mainly text pages in IE or any browser.... They are data reports.
How do you suggest saving them and sending them via email to ensure best compatibility and readability? There are few if any images in the html.
0
 
jcimarronCommented:
shaunwingin--I would either Save As an .mht file since that puts everything into one file which is easier to send. But it cannot be edited by the recipient.
Or if indeed you only want to send text and allow editing by the recipient,  Highlight the text, Copy, and Paste into a text editor (like Notepad or Wordpad).  Save that as a .txt  or .rtf file and send that file.
0
 
shaunwinginAuthor Commented:
khairil: Can I instruct the unblock for Outlook or IE? Whre would I do this. Don't want to have to do this each time?
0
 
shaunwinginAuthor Commented:
Still needs some resolution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.