View Full Version : Status bar display with Ajax Tabs

08-27-2007, 07:04 AM
1) Script Title: Ajax Tabs

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/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'.


08-27-2007, 09:09 AM
Why not just change the URLs of the tabs so it reflects what you want shown, something like:

<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.

08-28-2007, 12:49 PM
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.


08-28-2007, 04:26 PM
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 (http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm)

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 (http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm), 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.