This is a migrated thread and some comments may be shown as answers.

Style difference between localhost vs machine name

10 Answers 202 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Victor Campos
Top achievements
Rank 2
Victor Campos asked on 10 Feb 2010, 10:21 PM
I'm having an issue with style and formatting specifically with the docks - under localhost the style and formatting works as expected.  When I use my machine name to access the site under development the formatting goes out the door.

I've removed all css file references and put the style within the page and put inline style attributes to try and force the format.

Anything off the top of your head that might come to mind?

TIA,
-vic

10 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 15 Feb 2010, 09:26 AM
Hello Vic,

Such problem has not been reported before, and I really can't tell what's causing the problem. Could you please send us a working sample project that demonstrates the issue? Detailed description of the problem and the specific scenario will also help.

I don't know if it will help resolve the issue, buy you could try adding RadStyleSheetManager so that the CSS files loaded by the RadControls are combined. Please take into consideration that IE imposes a limit on how many stylesheet object can be loaded:


Kind regards,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Victor Campos
Top achievements
Rank 2
answered on 16 Feb 2010, 07:24 PM
Pero,

Thanks for the advice... I've tried isolating/sandboxing the problem but I've been unsuccessful.  I'll keep an eye on it and see what I can find and report back.

In the mean time, I'll try your suggestion with the stylesheet.

Thank Again,
-vic
0
Erik Petersson
Top achievements
Rank 1
answered on 30 Mar 2010, 03:27 PM
Hi Vic,
Did you ever get this sorted out?

I have a similar problem with RadDocks, but I don't think it's connected to the RadDock itself, but <LI>-tags on the page rendered.
Style looked different when browsing from the localhost compared to when browsing through the machine name.

When examining the code with Beyond Compare, I saw that the server did not close any of my <LI>-tags when browsing through the machine name, causing the styles to break.

Could you possibly check whether your problem is actually caused by tags not being closed?

To add to the mystery... I have this problem on a Win 2008 R2 x64 server (production env), but _do not_ have the problem on another Win 2008 SP2 x32 server.
0
Sonal Patel
Top achievements
Rank 1
answered on 21 Sep 2010, 05:59 PM
Has anyone found a solution?  I'm having the exact same problem, styles look great when browsing via localhost (thanks to God) but they are not so hot when browsing by machine name.
0
Victor Campos
Top achievements
Rank 2
answered on 21 Sep 2010, 06:14 PM
We basically fixed it so that it would display correctly on the server and not worry with the display via localhost.

With so many pressing issues we decided to move on with life - we've since then upgrade to the latest version of Telerik and at this point we don't even know that it's an issue anymore.
0
Sonal Patel
Top achievements
Rank 1
answered on 21 Sep 2010, 07:30 PM
Do you remember how you fixed it so would display correctly on the server?
0
Victor Campos
Top achievements
Rank 2
answered on 21 Sep 2010, 07:50 PM
Our issue was quite simple where the size of the control would be different on the server versus the localhost.  We adjusted the control to be the correct size on the server and not the localhost.

Sorry i can't be more help.
0
Pero
Telerik team
answered on 24 Sep 2010, 07:03 AM
Hi,

I think this has something to do with the fact that the development and production environment use different versions of the Internet Explorer browser. One of them uses IE7 and the other IE8.
Let me explain what might be the reason for the problem. The RadDock control is designed to be used in a fixed layout. This means that its Width and Height, and the Width and Height of the RadDockZone, must be specified in pixels. However, if this is not an option, and the user wants percentage values, then either of the solutions can be applied to resolve the issues:

In case the issue persists, please open a support ticket and send a fully working sample. We will do our best to help.


All the best,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Travis
Top achievements
Rank 1
answered on 30 Aug 2011, 03:57 PM

I'm experiencing similar problems as the original poster.  I've narrowed it down to the DOCTYPE tag at the top.  It seems that when I browse to http://(machinename) or my test server the DOCTYPE tag is ignored, but when I browse to http://localhost it is not.

Here's a sample of some html that demonstrates this:

<!DOCTYPE html>
<html>
<head>
    <title>Create New PDP</title>
    <style>
    *+html .mybox{color: red;}
    .mybox
    {
        padding:1px;
        border-width: 1px;border-style:solid;
    }
    </style>
</head>
<body>
<div class="mybox">
my text
</div>
</body>
</html>

If you browse to the page from localhost the text will be black, but if you browse to it from machine name it will be red.  It seems that the "*+html" style is only applied when there is no doctype tag.  When you remove the doctype tag, both render the same.

Telerik uses *+html in some of its stylesheets at least the ones I'm using in MVC 3 for comboboxes.  Is this some kind of configuration issue on my machine?  If so, how do I fix this?

0
Travis
Top achievements
Rank 1
answered on 30 Aug 2011, 04:24 PM
I think I figured this out.  It seems to have something to do with compatibility view in IE.  For some reason my browser was set to display intranet sites in compatibility view.  When I unchecked this by going to Tools - Compatibility View Settings, then my test server rendered the page the same as localhost!!  If I add localhost as a compatibility view site and then turn on compatibility view I see the same behavior as http://machinename.  So it seems http://(machinename) was being displayed automatically in compatibiltiy view. 
Tags
Dock
Asked by
Victor Campos
Top achievements
Rank 2
Answers by
Pero
Telerik team
Victor Campos
Top achievements
Rank 2
Erik Petersson
Top achievements
Rank 1
Sonal Patel
Top achievements
Rank 1
Travis
Top achievements
Rank 1
Share this question
or