ArcoTorcido
Technical User
I've seen other posts in regard to Type Mismatches, but unfortunately I don't have the brainpower or experience to apply them to my code.
I have a series of tables whose visibility I would like to toggle. I'm trying to use a global variable (also used in other functions) to determine which table is visible.
Here is a simplified version:
<HEAD>
<script type="text/javascript">
var globalVar="dudeTable"
function showTable ()
{
document.getElementsById('globalVar').style.display='block';
}
</script>
</HEAD>
<BODY>
<a href="javascript:showTable()" ><br>ShowTable</a>
<table border="0" id="dudeTable" style="display:none">
<tr>
dude
</tr>
</table>
</BODY>
Of course the error is: message: Statement on line 6: Type mismatch (usually non-object value supplied where object required)
Thanks for any suggestions.
Reply With Quote
I have a series of tables whose visibility I would like to toggle. I'm trying to use a global variable (also used in other functions) to determine which table is visible.
Here is a simplified version:
<HEAD>
<script type="text/javascript">
var globalVar="dudeTable"
function showTable ()
{
document.getElementsById('globalVar').style.display='block';
}
</script>
</HEAD>
<BODY>
<a href="javascript:showTable()" ><br>ShowTable</a>
<table border="0" id="dudeTable" style="display:none">
<tr>
dude
</tr>
</table>
</BODY>
Of course the error is: message: Statement on line 6: Type mismatch (usually non-object value supplied where object required)
Thanks for any suggestions.
Reply With Quote