Alvaro
Alvaro

Reputation: 41605

Problems loading some CSS styles with Internet Explorer accessing from computer name

I am having a very weird problem only with Internet Explorer (I'm using the version 9.0.8)

I have a web server installed on the computer (windows 7) running under IIS 7. I have used CakePHP framework for the site.

When i access it from my IP address everything works well but on the other hand, when I access it from the computer name, some CSS styles are not applied as well as some JS scripts.

The files are loading correctly because most of the CSS styles are applied and all of them load from one same file. But some of them, don't ask me why, are not applied.

Here you can take a look at the Internet Explorer inspector loading the site from both URLs: http://s9.postimage.org/vjhg6ytsd/problem.png enter image description here

With Javascript, what happends is that some functions seem to interrupt the flow of the rest. If I delete this "conflictive" functions then it works well. (but it always works well loading it from localhost or with the IP directly...)

Upvotes: 1

Views: 688

Answers (1)

thirtydot
thirtydot

Reputation: 228182

See: IE not rendering CSS properly when the site is located at networkdrive

Add this:

<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

Upvotes: 2

Related Questions