Page 1 of 1

Problem with javascript/css on a server which using XAMPP

PostPosted: 04. March 2014 11:46
by sedlis
Hello everyone,

Could you please help me with this problem. I made web application on my pc (builded on jquery, javascript, css, php). On my PC I have Xampp version 1.9.3 installed. All is OK, everything works in IE, Mozilla Firefox.
I copied project on my server where is also xampp version 1.9.3 same like on my client.

But when clients wants to use this application which is stored on server. They have got problem which javascript and sometime with css. But this problem only show in IE. In mozilla firefix is all fine.
When I try application directly run on the server everything is ok like in IE so in mozilla firefox.

Thank you for any idea.

Re: Problem with javascript/css on a server which using XAMP

PostPosted: 04. March 2014 13:28
by Altrea
Hi sedlis,

sedlis wrote:On my PC I have Xampp version 1.9.3 installed.

That is not a valid XAMPP version number.

sedlis wrote:They have got problem which javascript and sometime with css. But this problem only show in IE. In mozilla firefix is all fine.

JavaScript and css are processed/rendered on client side. At this point XAMPP components have already done it's work.
So it is a browser issue and in your case very common an issue with the compatibility view of the internet explorer.
Intranetsites are renderes in compatibility view by default.

best wishes,
Altrea

Re: Problem with javascript/css on a server which using XAMP

PostPosted: 04. March 2014 14:02
by sedlis
Altrea wrote:Hi sedlis,

sedlis wrote:On my PC I have Xampp version 1.9.3 installed.

That is not a valid XAMPP version number.

sedlis wrote:They have got problem which javascript and sometime with css. But this problem only show in IE. In mozilla firefix is all fine.

JavaScript and css are processed/rendered on client side. At this point XAMPP components have already done it's work.
So it is a browser issue and in your case very common an issue with the compatibility view of the internet explorer.
Intranetsites are renderes in compatibility view by default.

best wishes,
Altrea



Hi Altrea, sorry version of xampp is 1.8.3. And about compatibility of IE. It may be, but why when I start same code from local xampp everything is allright (IE and Firefox). But When I run same code which is placed on the server I have got problem only in IE.

Re: Problem with javascript/css on a server which using XAMP

PostPosted: 04. March 2014 14:50
by Altrea
Because if you run it from the server, IE will not use the compatibility view (exept your html code is far away from being valid)

Re: Problem with javascript/css on a server which using XAMP

PostPosted: 07. March 2014 08:42
by sedlis
Altrea wrote:Because if you run it from the server, IE will not use the compatibility view (exept your html code is far away from being valid)


You have got right. Its by compatibility mode. I tried to add to code

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

and it works. Thank you for your advice.

edit: meta tag must be before script or css link.

For example:
.
.
.
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" charset="windows-1250" />
<script src="jquery/jquery-2.0.3.js"></script>
<link rel="stylesheet" href="http://urazy/styl.css" type="text/css">
.
.
.