Closed Bug 278488 Opened 20 years ago Closed 20 years ago

Javascript: Status bar cannot be modified with window.status after changing an image source with document.image.imageName.src. Status bar freezes with "Transferring data from..."

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 185547

People

(Reporter: benapgar, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

The status bar cannot be modified through Javascript with window.status after
changing an image source with document.image.imageName.src. Status bar freezes
with "Transferring data from..." and is not modified by changing the
window.status variable as expected.

This is likely related to other status bar problems (though I found none with
this specific problem). The status bar seems to not be receiving a message that
loading has been complete and is stuck saying "Transferring data from...".

This does not occur with local images. This happens whether it is in a script in
the head, or Javascript inline in the form tags. Real images also create these
results.

Reproducible: Always

Steps to Reproduce:
<head>
<script>
function checkImage() { 
	alert("Image source: " + document.images.myImage.src +"\n" + "Image complete: "
+ document.images.myImage.complete);
	window.status="UPDATED";
	alert("Status bar should read: UPDATED");
}
</script>
</head>

<body>
<img src="http://www.mozilla.org/images/camino16.png" name="myImage">

<form name="f">
<input type="button" value="New image"
onclick="document.images.myImage.src='http://www.mozilla.org/images/mozilla16.png'">
</form>

<form name="f2">
<input type="button" value="Check" onclick="checkImage();">
</form>
</body>
Actual Results:  
1. The image "camino16.png" loads (into myImage).
2. Click on the "Check" button.
3. An alert box pops-up indicating the src of the image (correct) and if it has
been completed (true).
4. The status bar changes to say "UPDATED". 
5. An alert box pops up to verify the change.
6. Click on the "Go!" button.
7. The image "mozilla16.png" loads (into myImage).
8. Click on the "Check" button.
9. An alert box pops-up indicating the src of the image (correct) and if it has
been completed (true).
10. The status bar does not change and still reads "Transferring data from
www.myexample.com...". 
11. An alert box pops up to (incorrectly) verify the change.

Expected Results:  
10. The status bar should read "UPDATED" at this point.
(In reply to comment #0)
Made some mistakes:

> the head, or Javascript inline in the form tags. <strike>Real images also
create these
> results.</strike> (I rewrote the steps to reproduce and forgot to change this.
Ignore it.)
> 

> 10. The status bar does not change and still reads <strike>"Transferring data from
> www.myexample.com..."</strike> "Transferring data from www.mozilla.org..."


*** This bug has been marked as a duplicate of 185547 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Javascript: Status bar cannot be modified with window.status

http://bakkap.free.fr/

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050512
Firefox/1.0+  
You need to log in before you can comment on or make changes to this bug.