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';
}
} 8 7961
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.
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?
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'; } }
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?
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 ;-)
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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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: 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: 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...
|
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,...
|
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...
|
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...
| |