Do not use on any
shared computer
September 7, 2008 08:13pm pdt
 
[x]
Attachment Details

IE7 won't render my page at all, the source code is generated, just not displayed! Works perfect in FireFox

Tags: PHP, IE7 IE6 Firefox
HI Guys, I have been developing a website in PHP, which renders the code shown below in the code attachment.  It works and displays perfect in FireFox, but IE7 doesn't render it at all, although if you view the source of the page, it is all there correctly and valid XHTML!

I have copied a version of the HTML to a new file and tried opening that locally, same problem, opens fine in FireFox, nothing rendered in IE7.  If anyone has any ideas or suggestions, please can you help!!!

Thanks in advance.
Phil
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Loughborough University - Project Collaboration</title>
	<link href="lu-style2.css" rel="stylesheet" type="text/css" />
	<link href="site.css" rel="stylesheet" type="text/css" />
		  <script language='javascript' type='text/javascript' src='tiny_mce/tiny_mce.js' />
		  <script language='javascript' type='text/javascript' src='JS/page_ad.js' />
</head>
<body id='admin'>
	  <form action='page_admin_handle_update.php' enctype='multipart/form-data' method='post'><table width="100%"  border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td width="50%" class="address"><strong>Phil Martin</strong><br />
	      Loughborough University<br />
	      Leics, UK, LE11 3TU<br />
	      Tel: 01509 22 XXXX </td>
	    <td width="0%"><img src="images/ttlpic-default.jpg" alt=" " width="330" height="67" /></td>
	    <td width="50%"><div align="right"><a href="http://www.lboro.ac.uk"><img src="images/lulogo.gif" alt="Loughborough University" width="218" height="67" border="0" /></a></div></td>
	  </tr>
		</table>
		<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="ttlbg1">
			  <tr>
			    <td class="ttlbg2">
					<div align="center">
				      <h1>Project Collaboration</h1>
				    </div>
				</td>
			  </tr>
		</table>
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
				<td width="200px" align="center" valign="top">
					<ul id='nav'>
									<li><a href='logout.php?PHPSESSID='>Logout</a></li>			
									<li>&nbsp;</li>
									<li><a href='index.php?PHPSESSID='>Home</a></li>
									<li><a href='about.php?PHPSESSID='>About</a></li>
									<li><a href='partners.php?PHPSESSID='>Partners</a></li>
									<li><a href='contact.php?PHPSESSID='>Contact Us</a></li>
									<li>&nbsp;</li>
									<li><a href='view_proj_files.php?PHPSESSID='>View Project Files</a></li>	<li>&nbsp;</li>
									<li><a href='site_admin.php?PHPSESSID='>Site Admin</a></li></ul>		
				</td>
			    <td style="border-left: 1px solid #330066; border-right: 1px solid #330066; padding:5px;"><center><h2>Site Admin - Page Content</h2></center><table border='0'>
							<tr>
								<td><select name='ddlPage' id='ddlPage' onchange='getCurrentInfo();'>
									<option value='0' selected='selected'>Select Page</option><option value='1'>Home</option><option value='2'>About</option><option value='3'>Partners</option><option value='4'>Contact</option></select><div id='loader'>&nbsp;</div>
								</td>
							</tr>
							<tr>
								<td>
									<textarea cols='60' rows='20' name='contentText' id='contentText'></textarea>
								</td>
							</tr>
							<tr>
								<td>
									<br />
									<input type='hidden' name='radioSelect' id='radioSelect'></input>
									<input type='radio' checked='checked' name='image' id='image1' onclick='setHidden(0)'></input><select name='ddlPicLink' id='ddlPicLink'><option value='barbg.gif'>barbg.gif</option><option value='Sunset.jpg'>Sunset.jpg</option><option value='Water_lilies.jpg'>Water_lilies.jpg</option><option value='front.jpg'>front.jpg</option><option value='ttlpic-abstract-03.jpg'>ttlpic-abstract-03.jpg</option></select><br /><br />
									<input type='radio' name='image' id='image2' onclick='setHidden(1)'></input>
									<input type='file' disabled='disabled' size='70' name='picUpload' id='picUpload'></input>
									<br /><br />
								</td>
							</tr>
							<tr>
								<td>
									<input type='submit' id='saveButton' value='Save'></input>
								</td>
							</tr>
						</table></td>	
				
			  </tr>
		</table>
		<hr />
		<div align="center" class="xsmalltxt">Website Maintained by: <a href="mailto:copjm@lboro.ac.uk">copjm@lboro.ac.uk</a> - <a href="http://www.lboro.ac.uk">LU
			    Home</a> - <a href="http://www.lboro.ac.uk/cgi-bin/accessibility.html">Accessibility</a> - &copy; Loughborough
			    University
				<p>
					<a href="http://validator.w3.org/check?uri=referer"><img
			        src="http://www.w3.org/Icons/valid-xhtml10"
			        alt="Valid XHTML 1.0 Transitional" height="31" width="88" border="0" />
					</a>
				</p>
			 </div>
		<p align="center">&nbsp;</p>
		<p>&nbsp;</p>
 
	</form>
</body>
 
</html>
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Software
Question Asked By: Artform04
Solution Provided By: sledgebox
Participating Experts: 2
Solution Grade: A
Views: 22
Translate:
Loading Advertisement...
 
[+][-]Accepted Solution by sledgebox
Accepted Solution by sledgebox:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Open Discussion
Open Discussion
 
Comment by sledgebox
I know it sounds, but it works. It seems that perhaps when IE sees a script tag, it treats everything after that tag as script until it finds the end script tag. Pretty lame huh?
1:
2:
3:
4:
5:
6:
7:
<!-- Change this: -->
<script language='javascript' type='text/javascript' src='tiny_mce/tiny_mce.js' />
<script language='javascript' type='text/javascript' src='JS/page_ad.js' />
 
<!-- To this: -->
<script language='javascript' type='text/javascript' src='tiny_mce/tiny_mce.js'></script>
<script language='javascript' type='text/javascript' src='JS/page_ad.js'></script>
Open in New Window Select All
 
 
Comment by jgmontgo
Very strange but I think I found the problem for you here. In your code you have the following lines:

  <script language='javascript' type='text/javascript' src='tiny_mce/tiny_mce.js' />
  <script language='javascript' type='text/javascript' src='JS/page_ad.js' />

After making the following changes I was able to get the file to render in IE7:

  <script language='javascript' type='text/javascript' src='tiny_mce/tiny_mce.js' ></script>
  <script language='javascript' type='text/javascript' src='JS/page_ad.js' ></script>

Hope this helps.

Jon
 
 
20080723-EE-VQP-34 / EE_QW_2_20070628