473,837 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing to the status bar

58 New Member
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 1572
hsriat
1,654 Recognized Expert Top Contributor
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 Recognized Expert Moderator MVP
Note that not all browsers let you set the status bar message. In Firefox, this is disabled by default.
May 6 '08 #3
RobertTheProgrammer
58 New Member
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
RobertTheProgrammer
58 New Member
Ah! I solved my own problem (I think).

Rather than setting the "window.default " value, I set the "window.default Status" 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 Recognized Expert Moderator MVP
It may be that return true is required. The following example should work:
[html]<div onmouseover="wi ndow.status='Mo used over'; return true;" onmouseout="win dow.status='Mou sed 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
24233
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. Once connected I will be sending regular ascii commands to the connected device (in this case Cisco 3550 series switches.) Has anyone done this or can they point me to a procedure or built in command set that can do this? Thx in advance. ...
4
1513
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 write returns a status -1. To elaborate here is the code segment main (... , ...) {
10
2196
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 include. What sites do people know about that are comprehensive in their differences? For example, MacOSX complained about <string.h>. With Solaris I needed
6
3221
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 public System.Windows.Forms.TextBox textBox1; When I try to write to this textbox it never publishes anything. If I call the same method from inside the same class it does. How can I publish to this textbox from an external class. Simple...
4
1907
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: FILE FORM1.CS: using System; using System.Drawing;
13
6878
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 serially to a BASIC stamp or a Javelin stamp and then use the stamp to set however many pins as 0's or 1's but should it be that hard to do with python. I've looked through how python does serial with the "serial" module but it just uses Java's...
7
4370
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 the other processes are alive and to see, if they are sending heartbeat messages. I wish to do this for exampel via socket programming. Can any one tell me, the structure og guideline for this?
0
742
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" InvestmentStrategyId="InvestmentStrategy01"> - <Contribution Id=0 Source="Employee" EscalationBasis="FixedCompoundPct" EscalationPct="0.0" Frequency="12" ExistingOrNew="Existing"
0
852
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" InvestmentStrategyId="InvestmentStrategy01"> - <Contribution Id=0 Source="Employee" EscalationBasis="FixedCompoundPct" EscalationPct="0.0" Frequency="12" ExistingOrNew="Existing"
0
10584
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10644
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10289
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9423
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7827
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5681
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4482
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3131
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.