3/1 I barely, if ever, used Javascript. Can someone tell me if this is
possible? If so, can you either give me a sample of how to write
"func()" or point to where I can find some samples? Thanks.
If I have the following embedded table, can I dynamically replace the
embedded table with
nothing (i.e., empty string)
or from a selection of like 3 differently data sets
when a user selects a different option in the dropdown menu?
<form ...>
<select onChange=func()><input>1</input><input>2</input>...</select>
<table>
<tr><td>...</td><td>...</td></tr>
<tr>
<td>...</td>
<td>
<table>
<tr><td>...</td><td>...</td></tr>
<tr><td>...</td><td>...</td></tr>
...
</table>
<tr><td>...</td><td>...</td></tr>
</table>
</form>
\_ Rather than removing it, you might consider simply hiding it with
CSS (though removing it is possible):
<table id="showMeAtFirst">...</table>
<a href="#" onclick="swapVis('showMeAtFirst')">Show/Hide</a>
<script>
function swapVis(id) {
if (document.getElementById(id).style.display == 'block') {
document.getElementById(id).style.display = 'none';
} else {
document.getElementById(id).style.display = 'block';
}
}
</script>
\_ Pretty cool--this actually shows up as intended on soda's finger
cgi. -John |