Will Perone

Problem:
In Internet Explorer you get '(whatever) is null or not an object' but not in Firefox.

Solution:
An id you are using is named the same thing as something with a name tag.
Example:
(in your html you have)
<tr name="superawesome">
<td id="superawesome">superawesome</td>
</tr>
(then in your javascript you have something like)
 
function showhide(layer_ref, show)
{
    var state = '';
    if (show == false) state = 'none';				
	if (document.all) //IS IE 4+
		eval( 'document.all.' + layer_ref + '.style.display = state');	
	if (document.layers) //IS NETSCAPE 4 or below
		document.layers[layer_ref].display = state;
	if (document.getElementById && !document.all) // firefox
	{
		hza = document.getElementById(layer_ref);
		hza.style.display = state;
	}
}

showhide('superawesome', false);
Apparently Internet Explorer is unable to distinguish which 'superawesome' is being referred to but firefox is.

4 Comments
rwjjpxsers 1 0
Hello! Good Site! Thanks you!
bob 2012/01/050 0
Interesting!
Kader 2012/09/13 Contact Me1 0
It's a pleasure to find smeonoe who can think so clearly
alex 2012/11/10 Contact Me0 0
write j2me salary application that allows the user to
1, enter his/her salary
2, choose his/her
-manager :22%
-mid level :17%
-lower level :12%
and display output
1, overall output
2, amount of tax
3, take home salary (what is left)

<- for private contact