the http_checker I wrote ages ago doesnt appear to work on IE7.

How should we handle this?

An if statement on the document.navigator object?

Ive included the html of a page that causes a 404 error

Let me know how you'd like to handle the different browsers and I'll write the 
code for it

Paul


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>

<html dir="ltr">

    <head>
        <link rel="stylesheet" type="text/css" href="ErrorPageTemplate.css">

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <title>HTTP 404 Not Found</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:initHomepage(); expandCollapse('infoBlockID', 
true); initGoBack(); initMoreInfo('infoBlockID');">

        <table width="730" cellpadding="0" cellspacing="0" border="0">

        <!-- Error title -->
            <tr>
                <td id="infoIconAlign" width="60" align="left" valign="top" 
rowspan="2">
                    <img src="info_48.png" id="infoIcon" alt="Info icon">
                </td>
                <td id="mainTitleAlign" valign="middle" align="left" width="*">
                    <h1 id="mainTitle">The webpage cannot be found</h1>
                </td>
            </tr>



            <tr>
                <!-- This row is for HTTP status code, as well as the divider-->
                <td id="http404Align" class="errorCodeAndDivider" 
align="right"><ID id="http404">&nbsp;HTTP 404</ID>
                    <div class="divider"></div>
                </td>
            </tr>


        <!-- Error Body -->
            <tr>
                <td>
                    &nbsp;
                </td>
                <td id="likelyCausesAlign" valign="top" align="left">
                    <h3 id="likelyCauses">Most likely causes:</h3>
                    <ul>
                        <li id="causeErrorInAddress">There might be a typing 
error in the address.</li>
                        <li id="causeLinkOutOfDate">If you clicked on a link, 
it may be out of date.</li>
                    </ul>
                </td>
            </tr>

        <!-- What you can do -->
            <tr>
                <td>
                    &nbsp;
                </td>
                <td id="whatToTryAlign" valign="top" align="left">
                    <h2 id="whatToTry">What you can try:</h2>
                </td>
            </tr>

        <!-- retype address -->
            <tr>
                <td >
                    &nbsp;
                </td>
                <td id="retypeAddressAlign" align="left" valign="middle">
                    <h4>
                        <table>
                          <tr>
                              <td valign="top">
                                  <img src="bullet.png" border="0" alt="" 
class="actionIcon">
                              </td>
                              <td valign="top">
                                  <ID id="retypeAddress">Retype the 
address.</ID>
                              </td>
                          </tr>
                        </table>
                    </h4>
                </td>
            </tr>

        <!-- back to previous page -->
            <tr>
                <td >
                    &nbsp;
                </td>
                <td id="goBackAlign" align="left" valign="middle">
                    <h4>
                        <table>
                          <tr>
                              <td valign="top">
                                  <img src="bullet.png" border="0" alt="" 
class="actionIcon">
                              </td>
                              <td valign="top">
                                  <span id="goBackContainer"></span><noscript 
id="goBack">Go back to the previous page.</noscript>
                              </td>
                          </tr>
                        </table>
                    </h4>
                </td>
            </tr>


        <!-- top level domain-->
            <tr>
                <td >
                    &nbsp;
                </td>
                <td id="mainSiteAlign" align="left" valign="middle">
                    <h4>
                        <table>
                          <tr>
                              <td valign="top">
                                  <img src="bullet.png" border="0" alt="" 
class="actionIcon">
                              </td>
                              <td valign="top">
                                  <ID id="mainSite1">Go to </ID><span 
id="homepageContainer"><noscript id="mainSite2">the main 
site</noscript></span><ID id="mainSite3">&nbsp;and look for the information you 
want.</ID>
                              </td>
                          </tr>
                        </table>
                    </h4>
                </td>
            </tr>

        <!-- InfoBlock -->
            <tr>
                <td id="infoBlockAlign" align="right" valign="top">
                    &nbsp;
                </td>
                <td id="moreInfoAlign" align="left" valign="middle">
                    <h4>
                      <table>
                        <tr>
                            <td valign="top">
                                <a href="#" 
onclick="javascript:expandCollapse('infoBlockID', true); return false;"><img 
src="down.png" id="infoBlockIDImage" border="0" class="actionIcon" alt="More 
information"></a>
                            </td>
                            <td valign="top">
                               <span id="moreInfoContainer"></span>
                               <noscript><ID id="moreInformation">More 
information</ID></noscript>
                            </td>
                        </tr>
                      </table>
                    </h4>

                    <div id="infoBlockID" class="infoBlock">
                        <p id="errorExplanation">This error (HTTP 404 Not 
Found) means that Internet Explorer was able to connect to the website, but the 
page you wanted was not found. It's possible that the webpage is temporarily 
unavailable. Alternatively, the website might have changed or removed the 
webpage.</p>
                        <p id="moreInfoSeeHelp">For more information about HTTP 
errors, see Help.</p>
                    </div>

                </td>
            </tr>


        </table>

    </body>
</html>
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to