Forum Moderators: open

Message Too Old, No Replies

hiding messages in status window

status="message" does not work - what might?

         

Julius

2:42 pm on Oct 22, 2004 (gmt 0)

10+ Year Member



Hi,
When a file loads in browser window there is often a status line message telling the user the url of the file that's loading.

I have tried numerous variants on status="message" and none of these works.

Perhaps there is some other way of doing this?

BlobFisk

10:59 am on Oct 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Julius,

Are you talking about an HTML file or something like a Word document?

There is a way of manipulating the status message:

window.status = 'Some Message';

This may be what you are looking for? You can fire it from <a>nchor's or you can write a script that sets it at the beginning of the document to whatever you want.

There is a usability concern here - many people may use the status bar to make sure that the page being loaded is actually the one they want, but it is a relatively minor issue compared to some of the other usability faux pas's out there!

tedster

2:43 pm on Oct 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I certainly agree with BlobFisk - when there is some kind of delay in loading a page, I like to see the status bar to know whether anything is happening at all.

StupidScript

4:47 pm on Oct 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One of the major hurdles to overcome with placing content in the status bar while the page is loading is that browser manufacturers write messages to the status widget in their own attempt to let the user know what is going on.

For a quick test, drop the following into a big HTML page right after the <HEAD> tag:

<script type="text/javascript" language="javascript">
defaultStatus="Please wait while loading ...";
</script>
... rest of the page ...

You can see that the status bar flashes the message briefly but then disappears as the browser app takes over. Without the app exerting its influence, the "defaultStatus" would remain until replaced by the next instruction to that widget.

BTW, here's how I usually manipulate the status:

<script type="text/javascript" language="javascript">
function setStat(msg) { top.status=msg;return true; }
</script>
<body onload="defaultStatus='Welcome!'">
<a href="page.html" onmouseover="return setStat('This page has TOYS!')">Some Page</a>

If you had used both the "loading" defaultStatus and the "onload" defaultStatus, "loading" would have shown until the page had loaded then "onload" would replace it. But it's a moot point unless you can reach into the browser and turn off its use of the status bar widget.

I'm not a big fan of scrolling messages in the status bar, due to interruptions as described above. The browser app is a mighty powerful foe, in this case.

StupidScript

5:05 pm on Oct 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay ... how 'bout this?

Forget about the status bar. It's removable, anyway.

Let's play with the TITLE! Always on and maleable.
(Note you need a spider/bot check to write a better title for search engines while allowing the "wait" message to display for humans. Also, I think you may want to set your robots instructions to "NOARCHIVE" while you test this on a production site. When you're sure you're sending the right title to the indexes, you can let them cache you again, if you want. IMHO)

<html>
<head>
<?php
if($notbot) {?>
<title>Please wait while your request is loading ...</title>
<?} else {?>
<title>Search Terms and Stuff ...</title>
<?}?>
</head>
<body onload="document.title='ToysForSale.com';defaultStatus='Welcome to the best toy site on the web!'">

Voila. I think I'll add it to a few of my own sites! :)