Problem with javascript/css on a server which using XAMPP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem with javascript/css on a server which using XAMPP

Postby sedlis » 04. March 2014 11:46

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.
sedlis
 
Posts: 4
Joined: 04. March 2014 10:32
Operating System: Windows 7

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

Postby Altrea » 04. March 2014 13:28

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

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

Postby sedlis » 04. March 2014 14:02

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.
sedlis
 
Posts: 4
Joined: 04. March 2014 10:32
Operating System: Windows 7

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

Postby Altrea » 04. March 2014 14:50

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)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

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

Postby sedlis » 07. March 2014 08:42

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">
.
.
.
sedlis
 
Posts: 4
Joined: 04. March 2014 10:32
Operating System: Windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 123 guests