Page does not render in IE - At all.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Black Unicorn
Forum Commoner
Posts: 48
Joined: Mon Jun 16, 2003 9:19 am
Location: United Kingdom

Page does not render in IE - At all.

Post by Black Unicorn »

Hi folks,

I have a problem that has driven me up the wall.
I have a little login page http://www.eternalnexus.net/home.php?login=AUTO that renders OK in firefox, in validating XHTML strict.

However, in IE nothing shows. The source is there, it's all good, except it's not.

Any hints greatly appreciated, I just hate the thought of going back to quirks mode.

Here is the source of the page, if it helps:

Code: Select all

<!DOCTYPE html
PUBLIC &quote;-//W3C//DTD XHTML 1.0 Strict//EN&quote; 
&quote;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quote;>
<html>
<head>
<meta http-equiv=&quote;Content-Type&quote; content=&quote;text/html; charset=iso-8859-1&quote; />
<title>Login</title>
<script type=&quote;text/javascript&quote; src=&quote;js/common.js&quote;></script>
<!-- (c)2004 - 2005 &copy;Eternal Nexus . Net. All rights reserved. -->
<script type=&quote;text/javascript&quote; src=&quote;js/md5.js&quote; /><link rel=&quote;stylesheet&quote; type=&quote;text/css&quote; href=&quote;./css/darkshadow.css&quote; />
</head>

<body>
<p>Login</p>
<form action=&quote;/home.php&quote; method=&quote;post&quote; enctype=&quote;application/x-www-form-urlencoded&quote; onsubmit=&quote;return iVal()&quote;>
<pre class=&quote;loginBox&quote;>Username: <input type=&quote;text&quote; class=&quote;formsShort&quote; size=&quote;25&quote; name=&quote;username&quote; />
Password: <input type=&quote;password&quote; class=&quote;formsShort&quote; size=&quote;25&quote; name=&quote;password&quote; class=&quote;formsShort&quote; />
<input type=&quote;submit&quote; name=&quote;login&quote; value=&quote;Login&quote; class=&quote;buttons&quote; /><input type=&quote;hidden&quote; name=&quote;challenge&quote; value=&quote;Vvxp_LtlkaUPeoJWEKvNomcMj&#1111;]AQ_ag&quote; /><input type=&quote;hidden&quote; name=&quote;PHPSESSID&quote; id=&quote;PHPSESSID&quote; value=&quote;&quote; /></pre>
</form>
<div id=&quote;footer&quote;></div>
<p>
<a href=&quote;http://validator.w3.org/check?uri=referer&quote;><img src=&quote;http://www.w3.org/Icons/valid-xhtml10&quote; alt=&quote;Valid XHTML 1.0!&quote; height=&quote;31&quote; width=&quote;88&quote; style=&quote;border:none&quote; /></a></p>
</body>
</html>
Best wishes,
H
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

i took out the javascript and it worked, namely the <script src line for md5, look there for your error, im thinking possibly incorrect filepath, as that is the reason it happened on mine

also, just a quick note, you defined a input name twice, this was also causing errors although not critical
Last edited by malcolmboston on Mon Jun 06, 2005 1:20 pm, edited 1 time in total.
User avatar
artexercise
Forum Commoner
Posts: 33
Joined: Thu Nov 20, 2003 9:38 am
Location: Raleigh, NC

Post by artexercise »

make sure this file is correctly finding the javascript files. And if it is, check those files for any errors. The form appears in IE if you remove the references to the javascript.
Black Unicorn
Forum Commoner
Posts: 48
Joined: Mon Jun 16, 2003 9:19 am
Location: United Kingdom

Post by Black Unicorn »

Thanks a million for putting me on the correct track, I stared myself blind there.

It was indeed the second javascript with a badly escaped script tag

Code: Select all

<script type=&quote;text/javascript&quote; src=&quote;js/md5.js&quote; />
Rather than

Code: Select all

<script type=&quote;text/javascript&quote; src=&quote;js/md5.js&quote;>
Thanx again.
H
Post Reply