Closed
Bug 334926
Opened 19 years ago
Closed 13 years ago
readystate not updated in Mozilla on an Input tag of type image
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: warwickbambrook, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8) Gecko/20051107 Firefox/1.5
I have an input of type image and the image is a url that streams the image into the tag.
var map = document.getElementById('mapimageid');
map.onreadystatechange=mapLoaded;
the html is
<input id="mapimageid" class="dragme" type="image" border="0" name="mapimage" src="/cenreg/requestMap?application=cenreg&width=645&height=428&colours=65535&rnd=0.25861170002521106" width="645" height="428" class="dragme"/>
and the javascript is
function mapLoaded() {
var map = document.getElementById('mapimageid');
//window.status = map.readyState;
if (map.readyState=='complete')
{
var movemap = document.getElementById('mapimage');
movemap.style.left = 0;
movemap.style.top = 0;
document.getElementById('loadingmessage').style.visibility='hidden';
map.width=645;
map.height=428;
if (selectedHighlight != '') {
reDisplayHighlight();
}
}
}
There is a loading message in the middle of the map which is not removed when loaded. Therefore the readystate is not updated
Reproducible: Always
Actual Results:
There is a loading message in the middle of the map which is not removed when loaded. Therefore the readystate is not updated
Expected Results:
the loading message
document.getElementById('loadingmessage').style.visibility='hidden';
will be hidden
Works in IE5.5 IE6
Comment 1•19 years ago
|
||
Does the readyState property exist for input type=image in Mozilla?
Assignee: general → general
Component: General → DOM
Product: Mozilla Application Suite → Core
QA Contact: general → ian
Version: unspecified → Trunk
Comment 2•19 years ago
|
||
there is no readyState, there is only onload/onerror...
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Comment 3•13 years ago
|
||
What biesi said half a decade ago.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•