[...] be replaced by another table that my script will generateGiven that you're posting here in PM, I assume that you're talking about a Perl script. This script works on the server side, so if you need to do computation locally on the client side the suggestions given above by others should suffice.
OTOH, if what you want to do is server side, all you have to do is to introduce a little logic inside your script. Basically, your script must cope with the generation of both the original page, and the target page. What table you have to display actually depends on what parameters the browser sent to the server, i.e. if the button was pressed.
This kind of situations should be handled quite well by CGI::Application: for each possible "state", or "view", of your application, you can program an ad-hoc "run-mode". In this way, you can have the default run-mode display the first table, and program a dedicated run-mode to display the other table. You'll notice that the example provided in the documentation gives you three run-modes: one with a starting query form, one with a general table, one with the details for an entry of the intermediate table - this should be a fairly useful starting point.
Anyway, this is only one of the possible ways. You can Super Search for stuff like CGI and templating systems, without forgetting to see in Tutorials and Categorized Questions and Answers as well.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
In reply to Re: clearing a page
by polettix
in thread clearing a page
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |