Code displaying incorrect in IE 8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bongani Mgibi
    New Member
    • Oct 2010
    • 3

    Code displaying incorrect in IE 8

    Hi guys please see attachment code, the code displays well with all browsers except with IE 8, if you guys can copy and paste then open it with IE then try opening it again using another browser you will see how it displays what please check and advice.

    <Mod edit: Code from attachment posted below. --Atli>
    [code=html]
    <!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Ligwalag wala Funerals</title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet " href="js_styles .css" type="text/css" />
    <text align="left"/>
    <script type="text/javascript">
    /* <![CDATA[ */
    function checkForNumber( fieldValue) {
    var numberCheck = isNaN(fieldValu e);
    if (numberCheck == true) {
    window.alert("P lease enter a valid number");
    return false;
    }
    }
    /* ]]> */
    <!--HIDE FROM INCOMPATIBLE BROWSERS
    // STOP HIDING FROM INCOMPATIBLE BROWSERS-->
    </script>
    </head>
    <body>
    <h1><b>Order Here</b></h1>
    <h2><b>Please select below</b></h2>
    <form action="FormPro cessor.html" method="get" enctype="applic ation/x-www-form-urlencoded">
    <p><strong>Choo se what you need us to assist you with:</strong></p>
    <p><select name="services" >
    <option value="funeralc asket">Funeral Casket</option>
    <option value=funeralcr emation">Funera l Cremation</option>
    <option value="funerala rrangement">Fun eral Arrangement</option>
    <option value=funeralca r">Funeral Car</option>
    <option value="funeralc offin">Funeral Coffin</option>
    <option value="funeralc ost">Funeral Cost</option>
    <option value="funeralf lowers">Funeral Flowers</option>
    <option value="funeralh omes">Funeral Homes</option>
    <option value="funerali nformation">Fun eral Information</option>
    <option value="funeralm emories">Funera l Memories</option>
    <option value="funeralp arlor">Funeral Parlor</option>
    <option value="funeralp lanner">Funeral Planner</option>
    <option value="funeralp replanning">Fun eral Pre Planning</option>
    <option value="funeralp aymentsplan">Fu neral Payments Plan</option>
    <option value="funeralp rices">Funeral Prices</option>
    <option value="funeralp rograms">Funera l Programs</option>

    </select></P>





    <table border="0">
    <tr>


    <p><b>Complet e the form below</b></p>


    <p>Name<br />
    <input type="text" name="name" size="40" /></p>
    <p>Surname<br />
    <input type="text" name="surname" size="40" /></p>
    <p>Residentia l Address<br />
    <input type="text" name="residenti al_address" size="60" /></p>
    <input type="text" name="name" size="60" /></p>
    <input type="text" name="name" size="60" /></p>
    <p>Code<input type="text" name="code" size="10" onchange="retur n checkForNumber( this.value);"/></p>
    <p>Contact Number<br />
    <input type="text" name="area_code " size="3" maxlength="3" onchange="retur n checkForNumber( this.value);" />
    <input type="text" name="number" size="7" maxlength="7" onchange="retur n checkForNumber( this.value);" /></P>
    <p>Cellphone< br />
    <input type="text" name="cellnumbe r" size="10" maxlength="10" onchange="retur n checkForNumber( this.value);" /></p>
    <p>Email Address<br />
    <input type="text" name="email" size="50" /></P>

    <p><strong>Wher e did you here about us?</strong></p>

    <p><select name="aboutus">
    <option value="newspape r">Newspaper </option>
    <option value="internet ">Internet</option>
    <option value="afriend" >A Friend</option>
    <option value="brochure ">Brochure</option>
    <option value="radio">R adio</option>
    <option value="flyer">F lyer</option>
    </select></P>


    </table></tr>




    </form>
    </body>
    </html>
    [/code]
    Attached Files
    Last edited by Atli; Nov 7 '10, 10:37 PM. Reason: Please try to post your code examples in the thread, rather than as an attachment.
  • Cmaza
    New Member
    • May 2007
    • 16

    #2
    I'm not entirely sure what part of the code is causing the problem, but I did notice this when I took a look - line 34, missing opening quotation mark on parameter:

    <option value="funeralcar">Fun eral Car</option>

    Comment

    • Bongani Mgibi
      New Member
      • Oct 2010
      • 3

      #3
      I got the answer, when you remove line 54, 55 & line 90 the it will show correct.Oh and thenks for that i never saw line 34.

      Comment

      Working...