English 中文(简体)
Website surfacing blank pages in IE6
原标题:

- Since discovering more about my problem I have modified my question

A single user is complaining that (on XP and using IE6) they re not able to follow any links around my site. The behaviour they re seeing is clicking a link shows a blank page, but doesn t change the url in the address bar of the browser. Pressing refresh at this point then displays the page correctly with the correct URL in the address bar.

All anchors are correct, and as well as testing the site in all our favourite browsers I have also tested the site myself on XP using IE6 and have no problems.

Has anyone any thoughts on what could be causing this? Perhaps it could be the fact they re within a company network for example? -- I don t see how that could cause a problem, but I am so far coming up empty.

I m using XHTML & PHP. Headers are being received correctly. I ve also ensured full PHP error reporting is on and there are no errors.

最佳回答

This problem was caused by a combination of the following two factors.

  • Firstly, the user was behind a proxy at their workplace (an ISA server).

  • Secondly, through debugging I found that the following two meta tags in the HTML head were the cause.

.

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

Basically IE appears to just give up once it reaches these two lines. Viewing source didn t work so it was not possible to see this directly.

The website worked fine when only either one of the two factors were present, but when combined they caused the problem.

So to solve my problem I removed these two lines. Now the site works fine.

问题回答

The header should work alone (I see nothing wrong with it).

The JavaScript however is wrong since the HTML comments <!-- and --> aren t valid JavaScript instructions and so all you ll get will be a parse error. You must first comment the comments (like //<!-- and //-->).

I hope that at least fixing the workaround helps!





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签