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

window.status not setting because of form tag

Hi all,

I have a perplexing problem here. I've developed some software using ASP.NET with C# in the code behind. I've been setting the "window.defaultStatus" in the code behind to send messages in the status bar to the user about their last actions (page loaded successfully, record stored successfully, etc.) I've been setting the "window.status" message with the JavaScript "onmouseover" event for various actions on the screen (click here to sort, click here to store, etc.) and as soon as they move their mouse away, it returns to the default message. This all works great for IE6 and the latest Firefox.

But we recently upgraded to IE8 and now I'm having problems. I've learned that IE8 can block code from changing the status bar value unless it's enabled. Well, it's been enabled. I've found that everything works as expected as long as the JavaScript for the "onmouseover" event is not within the form tags. But if it's within the form tag, the status bar is set to the "window.defaultStatus" and it refuses to set the value. I've verified that the JavaScript if firing just fine, but it refuses to change the status bar! And because I'm using ASP.NET, I have to use the form tags.

Any help is greatly appreciated.

Robert
PS. I just noticed more odd behavior. Apparently I can set the "window.defaultStatus" value in this situation, but not the "window.status" value. This might give me a workaround, but I need a method to grab the default value before the onmousover event so I can set it back on the onmouseout event.
May 7 '09 #1
1 5211
Okay, I do have a workaround, although it's kind of a stupid way to have to do it. Basically, I forget altogether setting the "window.status" variable because it just doens't work. Instead, I always set the "window.defaultStatus" variable. So on the "onmouseover" event, I set the value to what I want in the "window.defaultStatus" variable. But I have to keep track of the original value before the "onmouseover" event and set it back to what it was on the "onmouseout" event. Of course, this also means that any time I change the real "window.defaultStatus" value, I have to go change it all for the "onmouseout" calls.

Stupid, but it works. Thanks for reading.

Robert
May 7 '09 #2

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

Similar topics

8
by: Mark | last post by:
There are no problems with the following image loading code fragment and window.status assigments/updates in IE but in Firefox window.status fails to update. Any suggestions? (function...
18
by: Andrew Poulos | last post by:
If I manage to call the following bit of javascript in IE and MZ w = window.open("", "s", 'status=no,resizable=no,width=450,height=450'); I get a window that is not resizable and without a...
2
by: johkar | last post by:
I am getting an Access denied error when I write to a new window. The situation and code are outlined below. I am setting the domain in the main window. The problem is that the window I am...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
4
by: Miro | last post by:
Has anyone ever had this happen to them? I have a MDI Parent form and an MDI child form. The child form properly displays as a child form, but, the minimize, maximize and close ( x button ) in...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
1
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...
0
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...
0
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.