Vertical Scrollbar missing in IE7 for MSDN pages.

Discussion in 'Internet Explorer' started by Chompers, Feb 27, 2008.

  1. Ruben wrote on Tue, 4 Mar 2008 03:33:06 -0800:
    It could be an issue where you're hitting a different for each, and one of
    them is missing a code change, or possibly the ones that aren't working are
    sending the wrong User-Agent string which causes the site to generate some
    different JS code to attempt to handle things "better" but results in the
    page being messed up. The only difference I could spot on a quick comparison
    is that the one that isn't working has this extra bit of script:

    while(document.getElementById("ctl00_rs1_raRight").offsetWidth !=
    object.offsetWidth -
    document.getElementById("ctl00_rs1_raSplitter").offsetWidth -
    document.getElementById("ctl00_rs1_raLeft").offsetWidth - 6)
    {document.getElementById("ctl00_rs1_raRight").style.width =
    object.offsetWidth -
    document.getElementById("ctl00_rs1_raSplitter").offsetWidth -
    document.getElementById("ctl00_rs1_raLeft").offsetWidth - 6 + "px";

    The page that doesn't work in IE does however work in Firefox, and it
    appears that the scrollbar is generated by the page rather than the browser
    itself (there is no frameset, the scrollbar is scripted). Have you got
    something running on the machines that don't work, or on a proxy server they
    connect through, that is stripping out the User-Agent string in the HTTP
    headers or is modifying to pretend to be a different browser?
    Daniel Crichton, Mar 4, 2008
    1. Advertisements

  2. Probably. FWIW both generated the same set of error messages
    for script debugger (mostly about Sys undefined.)

    Instead I did right-click View Source. Line 81 is different.
    FWIW my line 81 is the same as your "working" one. ; )

    Must be. The Ctrl-F5 idea should have refreshed the page by name
    (not just checked its freshness by ETags). Sometimes, e.g. when frames
    or iframes are involved, Ctrl-F5 may not be enough but I just did a Ctrl-F5
    with my ms533050.aspx and it seems to have rerendered all of it without
    resorting to cache-checking at all. The only reason that I can think of why it
    wouldn't be working for you would be having an intermediate cache on the
    connectivity path which was giving you stale files *and* not checking with the
    host server when you were asking for the files the first time.


    Robert Aldwinckle, Mar 4, 2008
    1. Advertisements

  3. Chompers

    Ruben Guest


    Yes, that's it. I modified my user agent string to impersonate IE6 when IE7
    was new in order to be able to log on to my bank. Restoring the user agent
    string fixed the scrollbar issue for me.

    Thanks for the help.

    Ruben, Mar 4, 2008
  4. Ruben wrote on Tue, 4 Mar 2008 14:14:03 -0800:

    Glad to hear that fixed it. Out of interest, what did you enter for the user
    agent string?
    Daniel Crichton, Mar 5, 2008
  5. Chompers

    Ruben Guest

    When it didn't work the user agent string was (using IE7):

    "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
    SIMBAR={BB6FB9AC-0897-443F-A898-40E04D7AE111}; .NET CLR 1.0.3705; .NET CLR
    1.1.4322; .NET CLR 2.0.50727)"

    And when restored to IE7 settings it works and the reported user agent
    string is:

    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
    SIMBAR={BB6FB9AC-0897-443F-A898-40E04D7AE111}; .NET CLR 1.0.3705; .NET CLR
    1.1.4322; .NET CLR 2.0.50727)

    So, apparently the code fom the server to an IE6 client is different than to
    an IE7 client and the IE6 code doesn't work for IE7.

    I used this link to restore the user agent string:

    Ruben, Mar 5, 2008
  6. Ruben wrote on Wed, 5 Mar 2008 03:49:00 -0800:

    I tested the fiddler IE6 string, and it results in the scrollbar missing
    here too. The problem is that the page includes a doctype that causes IE7 to
    switch into Strict mode, rather than the Quirks mode that would emulate IE6.
    The IE6 UA string is then used by the site code to generate some additional
    script to render the scrollbar for a IE6, which results in it disappearing
    when using IE7 because it's not handling the entire page like IE6 would. If
    you could force IE7 into Quirks mode as well as set the UA string it might
    well work.

    If you take your notworking.html page, and remove the DOCTYPE at the top,
    then reload it in IE7 the scrollbar works.
    Daniel Crichton, Mar 5, 2008
  7. Chompers

    Chompers Guest

    Cheers, this fixed my problem too on both MSDN and CodePlex sites.
    Chompers, Mar 7, 2008
  8. Chompers

    Richard Guest

    I had this problem and traced it down to changing some registry setting to
    make IE7 look like IE6 to websites I was browsing. Change this back to IE7
    and it should fix it. Use the site below for a registry fix:

    Hope this helps.

    - Rich.
    Richard, Mar 23, 2008
  9. Chompers

    Sunny Guest

    Check this registry key if displays the correct version of your browser.
    There are might be somekind of add-ons/plugins you installed that broke your
    IE by changing the Data value to a wrong version of IE. This was my case.

    Settings\5.0\User Agent\

    Name: Version
    Type: REG_SZ
    Data: MSIE 7.0
    Sunny, May 6, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.