I have a page: http://www.girlscoutsmoheartland.org...progsearch.php
that works perfectly fine in every browser I try, except for actual IE7 (it even works fine in IE8 emulating IE7).
When you search for something on that page and have a display of results, each result has a link that changes a table row's display to visible, and hides the row when clicked again. It doesn't do that in IE7.
There are no errors or warning in Firefox's Error Console. But IE7 has an "Error on Page" notice (which does NOT appear in IE8 emulating IE7), that says:
Line: 59
Char: 11
Error: Could not get the display property. Invalid argument.
The script in question is this, with what would be line 59 indicated:
Code:
<script type="text/javascript">
<!--
function toggle_visibility(id) {
var e = document.getElementById(id);
var f = document.getElementById(id + "b");
if(e.style.display == 'table-row')
e.style.display = 'none';
else
e.style.display = 'table-row'; <<-- This is line 59
if(f.style.display == 'table-row')
f.style.display = 'none';
else
f.style.display = 'table-row';
}
//-->
</script>
I really don't know what to do, or where to begin. Everything in my limited knowledge seems to be working just fine. Most of my site's visitors use IE8, but enough use actual IE7 that I really need to fix this.
Thanks for any help or advice!
Liam
Well, that actually makes perfect sense to me! Except when I try that, it messes it all up even worse in all browsers.
Although, there may be some way to fudge things around to make some application of that to work.
Thanks for the suggestion!
Bookmarks