473,804 Members | 3,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getting value of the status bar

hey,

I know in the new browsers you're not able to change the value of the
status bar. Which is fair enough, i understand why and agree.

Although, i cant seem to get the value of the status bar. One used to
be able to do window.status.

But that doesnt seem to work. Wondered if someone could point me in
the right direction.

Cheers!

Nov 30 '06 #1
3 2123
daveyand wrote on 30 nov 2006 in comp.lang.javas cript:
I know in the new browsers you're not able to change the value of the
status bar. Which is fair enough, i understand why and agree.

Although, i cant seem to get the value of the status bar. One used to
be able to do window.status.

But that doesnt seem to work. Wondered if someone could point me in
the right direction.
A status bar has no value, only javascript objects can have a value.

The text content of some statusbars was read/write accessable through the
value of the window.status object, but that is no more in IE7.

However, hovering over an <ashows it's normalized href content in the
statusbar and that is accessable:

<a href="page.html "
onmouseover="al ert(this.href)" >
click here</a>

[it will show in the status bar after the alert is closed]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 30 '06 #2
Lee
daveyand said:
>
hey,

I know in the new browsers you're not able to change the value of the
status bar. Which is fair enough, i understand why and agree.

Although, i cant seem to get the value of the status bar. One used to
be able to do window.status.

But that doesnt seem to work. Wondered if someone could point me in
the right direction.
My first thought is that the right direction is backwards, as in
take a step back and look again at what information it is that you
want to get. There may be a better source than the status bar.
--

Nov 30 '06 #3
Daz

daveyand wrote:
hey,

I know in the new browsers you're not able to change the value of the
status bar. Which is fair enough, i understand why and agree.

Although, i cant seem to get the value of the status bar. One used to
be able to do window.status.

But that doesnt seem to work. Wondered if someone could point me in
the right direction.

Cheers!
Other than when you hover the cursor over a link, the only text in the
status bar, should be the text that you have placed there using your
script. Perhaps you should consider keeping track of what values are in
the status bar by designing a simple object/function that can represent
your status bar?

Something like this might work, although I haven't tested it. I am sure
you can see what i am getting at, however.
<---------- CODE START ---------->

<html>
<head></head>
<body onload="doStuff ();">
<script type="text/javascript">
function statusBar()
{
var sbText;
this.set = function(status Text)
{
sbText = statusText;
window.status = sbText
}

this.get = function()
{
return sbText;
}
}

var sb = new statusBar();

function doStuff()
{
sb.set('Some text');
alert("Status Bar text: " + sb.get());
sb.set('Some different text');
alert("New Status Bar text: " + sb.get());
}

</script>
</body>

<----------- CODE END ---------->

Nov 30 '06 #4

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

Similar topics

2
2024
by: jason | last post by:
Pardon my ignorance on this. The below code works, except, when I edit a record and update the two drop downs take the first entry in the dropdownlist if not selected. I'd also like the dropdown to show the current value in edit mode. I'm sure this is a common question. I've reviewed several related post and tried them out to no avial. Some of the offerings in listgroup look right on, but are not clear on where to handle the suggested...
2
2541
by: Wayne Wengert | last post by:
I have a VB.NET app in which I am using the following code to add a new row. ds.Tables("UnitsTable").Rows.Add(dr) ' Add the new row da.InsertCommand = cmdBuilder.GetInsertCommand da.Update(ds, "UnitsTable") At this point I want to get the value of the Identity field that has just been added to the underlying table ("UnitsTable" is based on a Select against a table named "Units")
3
1898
by: mike | last post by:
Hello, I am new to XPATH and am having a hard time selecting some nodes. I want to select all the record nodes where Status = 'Unprocessed' or 'Queued' (that part I can get) but additionally I only want the ones where the Field/Fieldname ='ChangeType' and Field/Value = 'SN' I have //ExtractInfo/Record/Field but that gets the field nodes, I need the record nodes. Below is a snippet of the abbreviated XML doc: <Extract> <ExtractInfo>
1
1328
by: bbasberg | last post by:
Hi, I am wondering how to get a value from one column based on another, using visual basic for applications. Here are the criteria: The first column contains status and we want the next row in the list after the last row that contains "completed". The second column contains a value that I want to use in a chart. So, in other words, I want to automatically find the value in the second column that is in the row after the LAST row with...
1
3203
by: simbarashe | last post by:
Hie could someone please help me with getting and using the current page url. I have a function that gets the url, I want to use it with header(location : XXX) but it wont work. The code is as follows: The code below is for the first page:session_start is in line 3 <link href="css/jobSheet.css" rel="stylesheet" type="text/css" /> session_start();
33
11869
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
10
2289
by: jonathan184 | last post by:
Hi I tried getting this to work through dreamweaver but it did not. So i found a n example on the internet , i followed everything exactly the search script does not work. Could somebody help me this please. Thanks for your help in advance. The form and script are on the same page. <?php require_once('../Connections/rs_ais.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
4
3433
by: JHite | last post by:
I am using Access 2003 on Windows XP. This is a simple database that contains “tblStaffers” containing names of the office staffers, “tblProjects” containing names of the office projects, and “tblStatusReports” containing the “StafferID” (link to Staffer table), the “ProjectID” (link to Projects table), a “Date” field, and a “Notes” field. There is a main form, “frmStaffEntry,” with a subform, “frmStatusReports,” for a user to...
45
6899
by: angelicdevil | last post by:
i have 2 tables 1 is status_type with field name status and other is users with field username and status now i want that the first listbox lists all status from status type ( this i have achieved with php ) and based on selection of the value in listbox 1 the corresponding data in table users be loaded in listbox 2 . i have achieved this by using a button in php but i want tht it operate without submit button and no page refreshing ...
0
10558
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
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
10302
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
10069
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
5503
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...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
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
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
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.