473,387 Members | 1,548 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,387 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
8 4701
mark4asp <ma****************@ntlworld.com> writes:
Why won't the window.status message change ?


'I have window.status="Moomin"; why doesn't the statusbar change?'
<URL:http://jibbering.com/faq/#FAQ4_35>

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
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 #3
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 #4
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 #5
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 #6
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 #7
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 #8
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 #9

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

Similar topics

7
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"...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.