Results 1 to 4 of 4

Thread: Status bar display with Ajax Tabs

  1. #1
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Status bar display with Ajax Tabs

    1) Script Title: Ajax Tabs

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem:

    Hello, I noticed that when hovering over and/or clicking on the titles of each tab, the URL shows up on the browser's status bar. I was wondering if there is a way to have the status bar not show that information or more descriptive information such as 'cat', corresponding to the 'cat tab'.

    Regards.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Why not just change the URLs of the tabs so it reflects what you want shown, something like:

    Code:
    <li class="selected"><a href="cat" rel="tcontent1" rel="nofollow">Tab 1</a></li>
    <li><a href="dog" rel="tcontent2" rel="nofollow">Tab 2</a></li>
    "
    "
    The link inside the tab is non functional anyway, so from a user standpoint, it doesn't matter what you specify. You might want to add "nofollow" to the links as well so search engines don't try to crawl these URLs.

  3. #3
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I believe that using the above wouldn't apply once the tab is clicked(meaning the URL would show in the status bar once a tab is clicked, not just hovered over with the cursor). SO my question is whether there is a way to hide the url when clicking on a tab.

    Regards.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You talk about the status bar as if it is some universal object that behaves the same in all browsers. It isn't. And, all current browsers that I know of, including IE, allow the user to configure at least whether or not the status bar appears. I think it also has some of the capabilities of other browsers, like being able to configure what the status bar shows if it is present, and whether or not scripts can control it.

    Now, confusing this issue is the fact that the title of your first post is:

    Status bar display with Ajax Tabs
    However, the script that you linked to in your first post is:

    Tab Content Script

    the non-Ajax version of this script. For that script, there is no link, and the server doesn't fetch any external content, so the advice ddadmin gave you is correct for that script (actually it has nothing to do with the script, it has to do with the markup, that's why it can work).

    However, if you really meant Ajax Tabs, there isn't much you can do about it. The browser will show whatever it is configured by the user to show.

    In the old days, we could effectively turn off the user's status bar, and/or change what it displays via javascript. But in today's modern browsers, this is no longer possible.

    There are ways to, in some browsers with certain user configuration to have a limited effect upon the status bar, but (with Ajax Tabs) the amount of rewrite involved to achieve this very modest goal is virtually pointless.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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