Anchor text in IE's title bar



  • I am helping to develop a web application that makes use of anchor tags to reposition the page (after a sort). That part works fine, but the title of the page is replaced with '#anchor_name' when I do this (in Internet Explorer). Is there a way to prevent this? Or am I possibly doing something wrong?

     

    Thanks... 



  • Ok, forgive the stupid question, but do you mean "address bar" rather than "title"?



  • @Whiskey Tango Foxtrot? Over. said:

    Ok, forgive the stupid question, but do you mean "address bar" rather than "title"?

    It's the title bar of the window:

     

    I expect it in the address bar, and can see th reason, maybe, for it being in the title bar. I really need to get rid of it though!  



  • Uhh... make sure the <title> is being set on the result page? IE
    will show a part of the URL in the titlebar if the titlebar is not
    otherwise set.



  • @R.Flowers said:

    Is there a way to prevent this?

    Use Firefox.  Or Opera.


     



  • document.title is your friend.



  • @R.Flowers said:

    It's the title bar of the window

    Ok, that's one of the wierdest things I've ever seen. How is it even happening?

    Care to post some source code? I'd love to know what's causing it.



  • @Whiskey Tango Foxtrot? Over. said:

    @R.Flowers said:

    It's the title bar of the window

    Ok, that's one of the wierdest things I've ever seen. How is it even happening?

    Care to post some source code? I'd love to know what's causing it.

    Hypothesis:

    <title></title>

    With address:

    blah/folder/dir/#mystuff

    which would invisibly resolve to

    blah/folder/dir/index.html#mystuff

    which would set the titlebar to:

    #mystuff 



  • I thought and tried that.

     

    No dice on IE7 or Firefox.  



  • You've developed a large application, and after some specific action a very specific output occurs.

    This is definitely not one of those "I run into that all the time" bugs.  It's undoubtedly something that's happening inside of your code, and without seeing it, there isn't much anyone can help you do.

    Perhaps we should start by clarifying what's happening.  The web application "makes use of anchor tags to reposition the page (after a sort)".  What do you mean by that?  Is it sorting the page content through some JavaScript DOM interaction, or is this a request being made to the server which returns a page that has been sorted.  Is the repositioning done by going to the page with the #anchor appended to the URL, or are you using JavaScript to determine where to scroll the page down to?  Is the #anchor_name in the title bar always the name of the anchor you were navigating to, or is it different, or is it literally "#anchor_name"?  Have you tried this with different browsers/versions?  What language is this web application being developed in?  Does it generate the <title> tag automatically, or do you actually set that yourself somewhere in the application?

    As you can see, far too many questions come to mind for somebody to give a reasonable possibility for your problem.
     



  • @lpope187 said:

    @R.Flowers said:

    Is there a way to prevent this?

    Use Firefox.  Or Opera.

    Thanks for the assist, Captain Big Help.

    Presumably his website needs to work with all browsers, and he can't force a site visitor to use a particular browser.  Could you FF partisans stop to think before posting unhelpful messages like this?  I mean, geez, head over to Clue-Mart, they're having a two-for-one sale today.



  • @mrprogguy said:

    @lpope187 said:
    @R.Flowers said:

    Is there a way to prevent this?

    Use Firefox.  Or Opera.

    Thanks for the assist, Captain Big Help.

    Presumably his website needs to work with all browsers, and he can't force a site visitor to use a particular browser.  Could you FF partisans stop to think before posting unhelpful messages like this?  I mean, geez, head over to Clue-Mart, they're having a two-for-one sale today.

     Guys, we really need to start coloring the sarcasm with orange... too many people are getting lost around these parts.



  • I don't need no stinkin' orange.


Log in to reply