Style difference between localhost vs machine name

11 posts, 0 answers
  1. Victor Campos
    Victor Campos avatar
    17 posts
    Member since:
    Apr 2009

    Posted 10 Feb 2010 Link to this post

    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
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 15 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Victor Campos
    Victor Campos avatar
    17 posts
    Member since:
    Apr 2009

    Posted 16 Feb 2010 Link to this post

    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
  5. Erik Petersson
    Erik Petersson avatar
    1 posts
    Member since:
    Dec 2009

    Posted 30 Mar 2010 Link to this post

    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.
  6. Sonal Patel
    Sonal Patel avatar
    4 posts
    Member since:
    Aug 2009

    Posted 21 Sep 2010 Link to this post

    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.
  7. Victor Campos
    Victor Campos avatar
    17 posts
    Member since:
    Apr 2009

    Posted 21 Sep 2010 Link to this post

    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.
  8. Sonal Patel
    Sonal Patel avatar
    4 posts
    Member since:
    Aug 2009

    Posted 21 Sep 2010 Link to this post

    Do you remember how you fixed it so would display correctly on the server?
  9. Victor Campos
    Victor Campos avatar
    17 posts
    Member since:
    Apr 2009

    Posted 21 Sep 2010 Link to this post

    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.
  10. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 24 Sep 2010 Link to this post

    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
  11. Travis
    Travis avatar
    223 posts
    Member since:
    Jan 2003

    Posted 30 Aug 2011 Link to this post

    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?

  12. Travis
    Travis avatar
    223 posts
    Member since:
    Jan 2003

    Posted 30 Aug 2011 Link to this post

    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. 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017