Avatar of mpulis
mpulis asked on

IE7 displaying HTML code instead of rendered page. ONLY on Local Pages

Hi,

I have noticed quite a strange situation. I am not an Internet Explorer user (I use Firefox), but lately I need to use a software which makes use of HTML pages to display its content (Sony Ericsson PC-Suite).

I realised that instead of the HTML I am getting the HTML code, thus I tried to load the HTML page (.htm) from Internet Explorer 7 and got the same result - HTML Source code. I tried to open a tab and also got its HTML source code shown. If I try to load any other web page from the Internet (and not from my computer) it works fine, without any problems at all. This problem only shows when IE7 tried to load the page off my hard disk.

I tried also to install IE8 RC1 maybe it fixes my problem but to no avail, therefore I decided to uninstall it again. I played a lot with my settings, disabled all the addons, played with the intranet security settings, disabled my firewall and antivirus to no avail. I am really out of ideas and has been trying any other hint on the web but am really out of ideas.


May I also point out that I did use spyware tools (Malware bytes / Spybot / Adaware) in order to make sure its not some malware problem bu to no avail.

Any help is extremely appreciated.



Below please find what I am getting when I press new tab:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
<html>
 
    <head>
        <link rel="stylesheet" type="text/css" href="ErrorPageTemplate.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Welcome to Tabbed Browsing</title>
        <script src="errorPageStrings.js" language="javascript" type="text/javascript">
        </script>
        <script src="httpErrorPagesScripts.js" language="javascript" type="text/javascript">
        </script>
    </head>
 
    <body onLoad="javascript:setTabInfo('tabInfoBlockID');" class="tabInfo">
 
        <table width="730" cellpadding="0" cellspacing="0" border="0">
 
            <tr>
                <td id="tabIconAlign" width="60" align="left" valign="top" rowspan="2">
                    <img src="tab_icon.png" id="tabIcon" alt="Tab icon">
                </td>
                <td id="mainTitleAlign" valign="middle" align="left" width="*">
                    <h1 id="mainTitle">You've opened a new tab</h1>
                </td>
            </tr>
 
            <tr>
                <td id="ErrorCodeAlign" class="errorCodeAndDivider" align="right">&nbsp;
                    <div class="divider"></div>
                </td>
            </tr>
 
          <tr>
            <td>
              &nbsp;
            </td>
            <td>
              <p><h2 id="withTabs1">With tabs you can:</h2>
              <ul>
                <li id="withTabs2">Use one Internet Explorer window to view all your webpages.</li>
                <li id="withTabs3">Open links in a background tab while viewing the page you're on.</li>
                <li id="withTabs4">Save and open multiple webpages at once by using favorites and home page tabs.</li>
              </ul>
              </p>
 
              <p><h2 id="getStarted1">To get started:</h2>
              <ul>
                <li id="getStarted2">Press the CTRL key while clicking links (or use the middle mouse button).</li>
                <li id="getStarted3">Click any tab with the middle mouse button to close it.</li>
                <li id="getStarted4">Press ALT+ENTER from the address bar or search box to open the result in a new tab.</li>
              </ul>
              </p>
            </td>
          </tr>
          <tr>
              <td>
                  &nbsp;
              </td>
              <td>
                  <p>
                      <table>
                        <tr>
                            <td valign="top">
                                <img src="help.gif" id="helpIcon" border="0" alt="Help Icon" class="actionIcon">
                            </td>
                            <td valign="top">
                                <a href="http://go.microsoft.com/fwlink/?LinkId=62982"><ID id="learnMoreAboutTabs">Learn more about tabs</ID></a>
                            </td>
                        </tr>
                      </table>
                  </p>
              </td>
          </tr>
          <!-- tab info -->
          <tr>
            <td id="tabInfoBlockAlign" align="right" valign="top">
                &nbsp;
            </td>
            <td id="tabInfoAlign" align="left" valign="middle">
                <h4>
                    <table>
                      <tr>
                          <td valign="top">    
                              <a href="#" onclick="javascript:expandCollapse('tabInfoBlockID', false); setTabInfo('tabInfoBlockID'); return false;">
                                  <span id="tabImageContainer"></span>
                                  <noscript>
                                      <img src="down.png" id="tabInfoBlockIDImage" border="0" class="actionIcon" alt="Show more tab shortcuts">
                                  </noscript>
                              </a>
                          </td>
                          <td valign="top">
                              <span id="tabInfoContainer"></span>
                              <noscript><ID id="hideTabHotkeys">Show more tab shortcuts</ID></noscript>
                          </td>
                      </tr>
                    </table>
                </h4>
                    <div id="tabInfoBlockID" class="infoBlock" style="display: none">
                    <p>
                      <b><ID id="tabHotKey1">Keyboard shortcuts</b>
                      <table width="100%">
                          <tr>
                              <td width="45%" valign="top">
                                  <ID id="hotkeyInfo1">Open links in a new tab in the background</ID>
                              </td>
                              <td width="55%" valign="top">
                                  <ID id="hotkeyInfo1a">CTRL+click</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo2">Open links in a new tab in the foreground</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo2a">CTRL+SHIFT+click</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo3">Open a new tab in the foreground</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo3a">CTRL+T</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo4">Open a new tab from the Address bar</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo4a">ALT+ENTER</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo5">Open a new tab from the search box</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo5a">ALT+ENTER</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo6">Open Quick Tabs (thumbnail view)</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo6a">CTRL+Q</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo7">Switch between tabs</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo7a">CTRL+TAB/CTRL+SHIFT+TAB</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo8">Switch to a specific tab number</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo8a">CTRL+<i>n</i> (<i>n</i> can be 1-8)</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo9">Switch to the last tab</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo9a">CTRL+9</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo10">Close current tab</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo10a">CTRL+W</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo11">Close all tabs</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo11a">ALT+F4</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo12">Close other tabs</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo12a">CTRL+ALT+F4</ID>
                              </td>
                          </tr>
                       </table>
                    </p>
                    <p>
                      <b><ID id="tabHotKey2">Mouse shortcuts</b>
                      <table width="100%">
                          <tr>
                              <td width="45%" valign="top">
                                  <ID id="hotkeyInfo13">Open a link in a background tab</ID>
                              </td>
                              <td width="55%" valign="top">
                                  <ID id="hotkeyInfo13a">Click the middle mouse button on a link</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo14">Open a new tab</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo14a">Double-click the empty space to the right of the last tab</ID>
                              </td>
                          </tr>
                          <tr>
                              <td valign="top">
                                  <ID id="hotkeyInfo15">Close a tab</ID>
                              </td>
                              <td valign="top">
                                  <ID id="hotkeyInfo15a">Click the middle mouse button on the tab</ID>
                              </td>
                          </tr>
                      </table>
                    </p>
                </div>
            </td>
          </tr>
          <tr>
              <td>
                 &nbsp;
              </td>
              <td>
                 <div class="divider"></div>
              </tr>
          </tr>
          <tr>
              <td>
                  &nbsp;
              </td>
              <td>
                  <p>
                    <table width="100%">
                        <tr>
                            <form name="skipTabFrom" onSubmit="javascript:skipTabCheck(document.skipTabFrom);" action="javascript:window.location.replace('about:blank')">
                              <td>
                                <input type="checkbox" name="skipTabCheckbox" id="dontShowPage">
                                <label for="dontShowPage" id="dontShowPageText">Don't show this page again</label>
                              </td>
                              <td align="right">
                                  <button id="closeButtonStyle" type="submit" style="width: 6.5em;"><ID id="closeButtonText">Close</ID></button>
                              </td>
                            </form>
                        </tr>
                    </table>
                  </p>
              </td>
          </tr>
        </table>
    </body>
</html>

Open in new window

Clipboard01.jpg
Web BrowsersWindows VistaWeb Applications

Avatar of undefined
Last Comment
jwmcpeak

8/22/2022 - Mon
ittogo

Sounds like windows has lost the association for the file extension.  Select an html file and then right click and select open with.  Then select IE and check always use.  If that doesn't work, go to explorer and then tools -> Folder Options ->File Types.  Find .html and try setting to IE.  If that doesn't work, delete the file association and try to open the file again and it should ask for a program to use.
ASKER CERTIFIED SOLUTION
jwmcpeak

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
mpulis

thanks alot jwmcpeak :)))

it did work - it was text/plan :) many man thanks!

thanks also to ittogo fo the prompt reply - but checked that before :))

thanks guys
wimpie_asg

I have had this before my self, try and restore IE7 defaults of IE7 by cright clicking on IE7, click the advanced TAB on the right, and then reset IE7 settings on your bottom left, please let me know if it works, I am trying to remember what I did, the solution to that in my case was actualy very simple.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
jwmcpeak

Glad to help. Thanks for the grade =)