473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can't change window.status message - help!

Why won't the window.status message change ?

IE ver. 6.0.2800.1106 displays the tooltip OK.

<td>
<A HREF="editAuthor.asp?item=4"
title="Edit author details"
onMouseOver="window.status=this.title"
onMouseOut="window.status=''">Micky Mouse</A>
</td>

Similar code works when the title and events are associated with <TD>
tags rather than <A> tags.

Jul 20 '05 #1
7 6197
rf

"mark4asp" <ma****************@ntlworld.com> wrote in message
news:bk********************************@4ax.com...
Why won't the window.status message change ?

IE ver. 6.0.2800.1106 displays the tooltip OK.

<td>
<A HREF="editAuthor.asp?item=4"
title="Edit author details"
onMouseOver="window.status=this.title"
onMouseOut="window.status=''">Micky Mouse</A>
</td>

Similar code works when the title and events are associated with <TD>
tags rather than <A> tags.


The status bar is there for the user to see which URL a link points to, not
for you to manipulate. Leave it all alone and all will be OK :-)

Cheers
Richard.
Jul 20 '05 #2
If you have many links on your page i'd prefer this:

place between <head> and </head>:

<script language=javascript>
window.defaultStatus="";
</script>

and the link:

<a href="editAuthor.asp?item=4" title="Edit author details"
onMouseOver="window.status=this.title; return true;">Mickey Mouse</a>
if you have only couple of links, you can do it this way also:

<a href="editAuthor.asp?item=4" title="Edit author details"
onMouseOver="window.status=this.title; return true;"
onMouseOut="window.status=' '; return true;">Mickey Mouse</a>
--
Janne
http://trax.to/thx/
"mark4asp" <ma****************@ntlworld.com> wrote in
news:bk********************************@4ax.com...
Why won't the window.status message change ?

IE ver. 6.0.2800.1106 displays the tooltip OK.

<td>
<A HREF="editAuthor.asp?item=4"
title="Edit author details"
onMouseOver="window.status=this.title"
onMouseOut="window.status=''">Micky Mouse</A>
</td>

Similar code works when the title and events are associated with <TD>
tags rather than <A> tags.

Jul 20 '05 #3
On Mon, 15 Sep 2003 14:28:09 +0300, "Janne Raiskila" <ol***@par.as>
wrote:
If you have many links on your page i'd prefer this:

place between <head> and </head>:

<script language=javascript>
window.defaultStatus="";
</script>

and the link:

<a href="editAuthor.asp?item=4" title="Edit author details"
onMouseOver="window.status=this.title; return true;">Mickey Mouse</a>
if you have only couple of links, you can do it this way also:

<a href="editAuthor.asp?item=4" title="Edit author details"
onMouseOver="window.status=this.title; return true;"
onMouseOut="window.status=' '; return true;">Mickey Mouse</a>


Thanks.

I can see my error now. I wasn't properly invoking the javascript.

<head>
<script language="JavaScript">
<!--
function statusMsg(msg) {
window.status=msg;
return true
}
//-->
</script>
</head>

....

<td>
<A HREF="editAuthor.asp?item=4"
title="Edit author details"
onMouseOver="return statusMsg(this.title)"
onMouseOut="return statusMsg('')">Micky Mouse</A>
</td>

Although I believe it makes no difference wheher the javascript is
places between the <head></head> or <body></body> tags, or so I've
been told.

Jul 20 '05 #4
The status bar is there for the user to see which URL a link points to, not for you to manipulate. Leave it all alone and all will be OK :-)

Cheers
Richard.


The status bar is there to show status messages. If your application has a
more useful status message than a (not very useful) URL, then why not
program the status bar to show a useful message?

Regards,

Pete.
Jul 20 '05 #5
rf

"Peter Connolly" <no*************@nospamrequired.com> wrote in message
news:bk*******************@news.demon.co.uk...
The status bar is there for the user to see which URL a link points to, not
for you to manipulate. Leave it all alone and all will be OK :-)

The status bar is there to show status messages. If your application has a
more useful status message than a (not very useful) URL, then why not
program the status bar to show a useful message?


IMHO the status bar is there to show status messages *from the browser*, not
from the web page author. A web page is not the application, the browser is
the application. The web page is the data.

This has been thrashed about endlessly in the newsgroups. The general
consensus is that, when viewers hover over a link they sometimes look at the
status bar to see where the link is going to send them to. If something
other than a URL appears then they get suspicious and just don't go there.
The exception is of course those XXX sites :-)

Cheers
Richard.
Jul 20 '05 #6
Hi,

rf wrote:
"Peter Connolly" <no*************@nospamrequired.com> wrote in message
news:bk*******************@news.demon.co.uk...
The status bar is there for the user to see which URL a link points to,


not
for you to manipulate. Leave it all alone and all will be OK :-)


The status bar is there to show status messages. If your application has a
more useful status message than a (not very useful) URL, then why not
program the status bar to show a useful message?

IMHO the status bar is there to show status messages *from the browser*, not
from the web page author. A web page is not the application, the browser is
the application. The web page is the data.

This has been thrashed about endlessly in the newsgroups. The general
consensus is that, when viewers hover over a link they sometimes look at the
status bar to see where the link is going to send them to. If something
other than a URL appears then they get suspicious and just don't go there.
The exception is of course those XXX sites :-)

Cheers
Richard.


While I understand that the general consensus amongst webdesigner is
what you state, I disagree in some cases.

The status bar is there to give information. Actually, the browser is
more than an application, it's a platform. Nowadays, full-blown
applications can be implemented in JavaScript, and the status bar can be
very handy, for example to inform the user about the progress of a long
process. It's easy to use, and you should not let your user sit and wait
without any information.

I agree that for links, the status bar should preferably display the
URL. But the status bar can be used for a lot more than just that.

Laurent
--
Laurent Bugnion, GalaSoft
Webdesign, Java, javascript: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jul 20 '05 #7
mark4asp wrote:
On Mon, 15 Sep 2003 14:28:09 +0300, "Janne Raiskila" <ol***@par.as>
wrote:

If you have many links on your page i'd prefer this:

place between <head> and </head>:

<script language=javascript>
window.defaultStatus="";
</script>

and the link:

<a href="editAuthor.asp?item=4" title="Edit author details"
onMouseOver="window.status=this.title; return true;">Mickey Mouse</a>
if you have only couple of links, you can do it this way also:

<a href="editAuthor.asp?item=4" title="Edit author details"
onMouseOver="window.status=this.title; return true;"
onMouseOut="window.status=' '; return true;">Mickey Mouse</a>

Thanks.

I can see my error now. I wasn't properly invoking the javascript.

<head>
<script language="JavaScript">
<!--
function statusMsg(msg) {
window.status=msg;
return true
}
//-->
</script>
</head>

...

<td>
<A HREF="editAuthor.asp?item=4"
title="Edit author details"
onMouseOver="return statusMsg(this.title)"
onMouseOut="return statusMsg('')">Micky Mouse</A>
</td>

Although I believe it makes no difference wheher the javascript is
places between the <head></head> or <body></body> tags, or so I've
been told.


What matters is the "return true" portion. But be aware that not all
browsers allow the changing of the status bar. Its not there for
tinkering with, its there to show information from the browser.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: mark4asp | last post by:
Why won't the window.status message change ? IE ver. 6.0.2800.1106 displays the tooltip OK. <td> <A HREF="editAuthor.asp?item=4" title="Edit author details"...
2
by: Christine | last post by:
I have a small window open that should close after 60 secs...works fine if the user is not playing with the window. The problem occurs when the user is moving the window around when the 60 secs is...
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
2
by: Surajit | last post by:
Hi I have written the following code for changing color of the <td> and also the text in that <td> on mouseover. I have written it as a javascript code and need it that way only. ...
9
by: WRH | last post by:
Hello I am new to asp but I made some Jscript functions which work fine. The functions contain some strings used as a registration key for some apps. It is important that these strings not be...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
1
by: mela | last post by:
it seems quite stupid but i am building up my web site and i am stocked with this problem: i download this photoslider script and wanted to have two on the same page but they are interfering one each...
8
by: rajesh | last post by:
< script language = javascript c =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.