R
Rose Chambers
How can I insert preformatted text from a file on the web server
into a table's cell? And then swapped the text in response to an
onClick event.
Something like this.........
<table>
<tr><td>
<img name="swap_grph" src="http://www.mydomain.com/graphs/piechart1.jpg">
</tr></td><tr><td>
< SOMETAG name="swap_text" src="http://www.mydomain.com/textfiles/datatable1.txt">
</tr></td><tr><td>
<form>
<input type="button" value="Next" onclick="swap_dataset()"/>
</form>
</tr></td>
</table>
<script>
function swap_dataset() {
document.images.swap_grph.src="http://www.mydomain.com/graphs/bargraph2.jpg";
document.SOMETHING.swap_text.src="http://www.mydomain.com/textfiles/datatable2.txt";
}
</script>
Thanks.
into a table's cell? And then swapped the text in response to an
onClick event.
Something like this.........
<table>
<tr><td>
<img name="swap_grph" src="http://www.mydomain.com/graphs/piechart1.jpg">
</tr></td><tr><td>
< SOMETAG name="swap_text" src="http://www.mydomain.com/textfiles/datatable1.txt">
</tr></td><tr><td>
<form>
<input type="button" value="Next" onclick="swap_dataset()"/>
</form>
</tr></td>
</table>
<script>
function swap_dataset() {
document.images.swap_grph.src="http://www.mydomain.com/graphs/bargraph2.jpg";
document.SOMETHING.swap_text.src="http://www.mydomain.com/textfiles/datatable2.txt";
}
</script>
Thanks.