473,387 Members | 1,379 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.

window.status fails Firefox

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 imageLoader() {
for (i=0; i <= 358; i+=2) {
imgSRC = 'cue'+i+'.gif';
cues[i] = new Image();
cues[i].cnt = 0;
cues[i].onload = imagesToLoad(i);
cues[i].onerror = createErrorHandler(imgSRC);
cues[i].src = imgSRC;
}
})();

function imagesToLoad(i) {
return function () {
if ((i += 2) <= 358) window.status = (179 - (i>>1)) + ' images left
to load.';
else window.status = 'image loading completed.';
}
}

function createErrorHandler(imgSRC) {
return function () {
this.src = (this.cnt++ < 3)? imgSRC : 'missing.gif';
}
}

Jul 23 '05 #1
8 7958
In article <11**********************@z14g2000cwz.googlegroups .com>,
ms******@aol.com says...
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?


Check that your JavaScript settings in Firefox permit updating the
status bar text.

--
Hywel http://kibo.org.uk/
I do not eat quiche.
Jul 23 '05 #2
Is the window.status bar text update normally "turned off" in
Firefox/Mozilla and if so is this because of some security issue? Also,
can this setting be either checked for or barring security issues can
it be "turned on" from Javascript?

Jul 23 '05 #3
DU
Mark wrote:
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 imageLoader() {
for (i=0; i <= 358; i+=2) {
imgSRC = 'cue'+i+'.gif';
cues[i] = new Image();
cues[i].cnt = 0;
cues[i].onload = imagesToLoad(i);
cues[i].onerror = createErrorHandler(imgSRC);
cues[i].src = imgSRC;
}
})();

function imagesToLoad(i) {
return function () {
if ((i += 2) <= 358) window.status = (179 - (i>>1)) + ' images left
to load.';
else window.status = 'image loading completed.';
No return true after setting the window.status string. In any case, a
large majority of Firefox, Mozilla, Gecko-based browser and Opera users
turn off status bar string editing by web authors. There is very little
justification for spamming or intrusing or text-editing in any way on
such toolbar.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.5 :)
}
}

function createErrorHandler(imgSRC) {
return function () {
this.src = (this.cnt++ < 3)? imgSRC : 'missing.gif';
}
}

Jul 23 '05 #4
Mark wrote:
Is the window.status bar text update normally "turned off" in
Firefox/Mozilla and if so is this because of some security issue?
Yes. Its because website authors kept hijacking it to put obnoxious
useless messages in it.

Also, can this setting be either checked for or barring security
issues can it be "turned on" from Javascript?

Its in the documentation right after the section about "How to open a
new window when a popup blocker is being used". The answer is no. Its
disabled, the user wants it that way, leave it alone.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Jul 23 '05 #5
OK Randy. It can't be "turned on" or checked from JS, it can be used
for obnoxious messages and it's not a security issue but rather an
insecurity issue ... at least with some ;-)

Jul 23 '05 #6
Mark wrote:
OK Randy. It can't be "turned on" or checked from JS,
You can attempt to set the window.status property and reading it back,
but that won't tell you if it visibly changed or not, only that you
changed its value. The difference is whether it actually changed whats
displayed on the status bar.
it can be used for obnoxious messages
And that is why you can't script it anymore.
and it's not a security issue but rather an
insecurity issue ... at least with some ;-)


Oh, an insecurity issue on the programmers part? I can understand and
agree with that.

What tidbit of information do you have that is so important that its
more important than the basic functionality of the status bar, and, that
can't be displayed in the page itself if its *that* important?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #7
Randy, in this thread it is not about what's important to you since
that is irrelevant. Instead, it is about what's important to me.

Jul 23 '05 #8
On 26 Dec 2004 20:25:18 -0800, Mark wrote:
Randy, in this thread it is not about what's important to you since
that is irrelevant. Instead, it is about what's important to me.


LOL! Where does the visitor come into your equation?

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #9

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

Similar topics

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...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
4
by: Csaba Gabor | last post by:
Up until a few weeks ago, javascript code like window.open("http://mydomain.com", "windowName"); would always bring my new or reused window to the top, with focus. Lately, Firefox (Deer park...
19
by: Frances | last post by:
Firefox is not respecting window.status, examples in this pg http://www.csua.berkeley.edu/~jgwang/jsform02.htm are ignored by Firefox.. why is this.. is there a solution.. thank you.. Frances
2
by: Xerxes | last post by:
Hi, I am trying to hide/change the window.status text when the mouse is over the hyperlink text but it does not seem to work on Mozilla (Firefox). Am I doing something wrong: <a...
4
by: arajunk | last post by:
In Firefox this opens a full size window (maximized) . In IE it opens the partial window requiring user to click restore (upper right) to maximize. What am I missing ? var...
1
by: RobertTheProgrammer | last post by:
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...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.