readystate not updated in Mozilla on an Input tag of type image

RESOLVED INVALID

Status

()

RESOLVED INVALID
13 years ago
7 years ago

People

(Reporter: warwickbambrook, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
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
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
there is no readyState, there is only onload/onerror...
Assignee: general → nobody
QA Contact: ian → general
What biesi said half a decade ago.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.