473,394 Members | 1,697 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,394 software developers and data experts.

Writing to the status bar

Hi folks,

This should be trivial, but I'm relatively new to web programming...

I'm using Javascript to write to the IE6 status bar with the rather straightforward script:

Expand|Select|Wrap|Line Numbers
  1. <script>
  2.     window.status="this is the status bar!";
  3. </script>
  4.  
My problem is that every time I load the page, my message displays for only a second or two and this "Done" is displayed. How can I get my message to stick on the status bar?

Robert
May 5 '08 #1
5 1546
hsriat
1,654 Expert 1GB
Try this...[HTML]<body onload="window.status='this is the status bar!';">[/HTML]

window.status is a non standard thing, so I am not sure if it would work.
May 5 '08 #2
acoder
16,027 Expert Mod 8TB
Note that not all browsers let you set the status bar message. In Firefox, this is disabled by default.
May 6 '08 #3
Hello,

Thanks, but the onload event only sets the status bar on the load. I need to set it dynamically via javascript, depending upon user actions. I can do this, but the last thing IE is doing is putting "Done" on the status bar, overwriting whatever I've put there with my code. So your suggestion doesn't really solve my problem. (But thanks anyway!)

As for FireFox... It's not a big deal, really. This is for a website only to be used internally by my company, and our IT group only supports IE6. (Sucks, I know, but it is what it is.)

BTW, I should add that I'm using ASP.NET to develop this application. I don't know if that could be a factor.

Robert
May 7 '08 #4
Ah! I solved my own problem (I think).

Rather than setting the "window.default" value, I set the "window.defaultStatus" value. I'm not so sure what the repercussions are of setting the default status message, though, so we shall see.

I never did figure out where the "Done" was coming from. Several sources seemed to indicate it was Google Toolbar, which I have installed. I uninstalled it, but the problem of the "Done" persisted.

Thanks for reading and thanks for the help.

Robert
May 7 '08 #5
acoder
16,027 Expert Mod 8TB
It may be that return true is required. The following example should work:
[html]<div onmouseover="window.status='Moused over'; return true;" onmouseout="window.status='Moused out'; return true;">Some text</div>[/html]
May 7 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Mathew | last post by:
I am looking to write a program with Microsoft Visual Basic 6 that writes out to the com port. After the inital Connection. I will be connecting at 9600, 8 data bits, with hardware flow control. ...
4
by: phantom | last post by:
Hi All. I am having a problem writing to a file. I can successfully open the file and write the contents using fprintf, however if the writing is not done for a while in the process the file...
10
by: Jason Curl | last post by:
Dear C group, I'm very interested in writing portable C, but I only have GNU, Sparc and Cygwin to compile on. What I find is the biggest problem to writing portable C is what headers to...
6
by: JP | last post by:
I'm sure this is a simple question and I'm overlooking the obvious. But, I have two seperate classes (in seperate files) under the same namespace. I am calling a method in one class that contains...
4
by: JP | last post by:
Okay - I have incorporated some of the advise I got on the first post and have gone ahead and setup a simple test project to demonstrate the trouble I am having. Any help is GREATLY appreciated: ...
13
by: jay.dow | last post by:
I want to write to the pins of an RS232 without using the serial protocol. The use would be every pin could act to complete a circuit in customized hardware. I could use python to communicate...
7
by: mojtaba_danai | last post by:
Hi Hope that some one can help with the following. I wish to write a Visual C++ program, which monitors 3-4 other services (process/programs also written in VC++). The program shall monitor, if...
0
by: ajayvaram | last post by:
Hi all, Im facing to write some XPATHs, My XML file as like as bellow.. <Plan...> ..... - <InvestmentAccount Id="InvestmentAccount01" Type="Post97NonPR" ...
0
by: ajayvaram | last post by:
Hi all, Im facing to write some XPATHs, My XML file as like as bellow.. <Plan...> ..... - <InvestmentAccount Id="InvestmentAccount01" Type="Post97NonPR" ...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.