Results 1 to 9 of 9
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Server, browser or javascript issue?

    Using http://www.standards.com/test.html, I find that ALL URLs that have a
    # get truncated by location .href (see http://www.standards.com/testlinks.html).

    I just tried from IE 4 on an old Win 95 system, same problem, location.href
    truncates the # and anything to the right.

    Normally, I (ab)use IE 6 on Win 2000.

    Could this be an Apache server issue?

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Server, browser or javascript issue?

    I'm not seeing any truncation on Firefox 1.0 Preview.

    Maybe IE knows that the bookmark is invalid and therefore throws it away?

    Since you're making up your own system, you could use a temporary character (one that is not meaningful to the browser) and then Replace it with a hash mark.

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Server, browser or javascript issue?

    I do think the problem is IE, but I do have a bookmark for one link

    http://www.standards.com/testlinks.html#Sorting

    A Ha! I just thought of something.

    A number of years ago, my ISP installed a tool that automatically tries to find files, it suggests links, if it finds something close to the URL, but not an exact match.

    Don't know what criteria is being used.
    Perhaps that tool is gettin in the way?

    Nowm if I can only recall how to turn the tool off!

  4. #4
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Server, browser or javascript issue?

    I've further isolated the problem

    If I use http://www.standards.com/test.html, the # and everything to the
    right gets truncated by location.href.

    No problem if I use http://www.standards.com/local.html.

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Server, browser or javascript issue?

    I just figured out what is going on.
    The problem is due to IE 6. IE 6 processes the following differently.

    http://www.standards.com/index-test.html#Sorting
    index-test.html#Sorting

    Where "Sorting" is a real anchor name in index-test.html.

    And, the following are processed differently by IE 6.

    http://www.standards.com/index-test.html#NoSuch
    index-test.html#NoSuch

    Where "NoSuch" is NOT a real anchor name in index-test.html.

    You can see this by trying both:

    http://www.standards.com/index-HTTP.html
    http://www.standards.com/index-local.html

    Which uses http://www.standards.com/index-test.html, which will become my new index.html shortly.
    The script is now http://www.standards.com/links-index.js

    IE seems to do this differtently than other browsers.
    Folkes have informed there is no problem with Mozilla and Firefox.

  6. #6
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Server, browser or javascript issue?

    Today, my ISP made a modification to how they map an alias for my web site.

    Apparently, howsoever they were previously mapping caused a problem for IE, but not for Mozilla/FireFox.

    Of course, the ISP claims that there was nothing wrong with what they were previously doing.

    In any case, whatever they were doing did cause a problem for IE, so there remains unanswered the question of why Mozilla/FireFox did not have the same problem.

    I now have my script going thru my index.html and everything is working as expected.

    I have removed the other files referenced in this thread as the problem is no longer reproducible since my ISP changed/corrected whatever at their end.

  7. #7
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Server, browser or javascript issue?

    The explanation I've gotten is the following.

    IE sends the url to the server, and the server sends back the redirected url to the browser.
    So IE is preserving queries, but not anchors, when a URL has been redirected.

    I would consider this to be a bug in IE, especially since Mozilla/FoxFire do
    preserve the anchors.

    I tried calling MSFT To report this problem, but they wanted to charge me
    just to talk to the support folkes.
    No way will I do that.

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Server, browser or javascript issue?

    > I tried calling MSFT To report this problem, but they wanted to charge me

    It costs money to get a live human to listen to you complain? <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15> I bet you've already posted this on the newsgroups. Hopefully that will always be free.

  9. #9
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Server, browser or javascript issue?

    MSFT does not "officially" accept bug reports via newsgroups.

    Many problems get reported in newsgroups that are not fixed by MSFT.

    One would think that those MSFT employees "unofficially" monitoring newsgroups would be responsible enough to forward reports to the "proper" channels, apparently not.

    For some areas, I do have private channels that let me report things, but not for IE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •