Sure. I started with this code, which is creating a list box:
<SELECT NAME=show SIZE=15>
<OPTION VALUE=anc> Anchorman
...
</SELECT>
<input type=submit name=show_update value="Edit Show">
<input type=submit name=show_create value="Create New Show">
(there are more options, but I'm simpifying it for the sake of space) so when one option is selected, the corresponding value is linked to the name show. Then you have the two submit buttons, which when pressed reload the page, and then are requested to see what changed, and to see what in the jsp page is needed to be loaded. That was working before, but I was asked to change that table to dynamically created hyperlinks (easily done with jsp and a for loop). So here's what I came up with:
function submitshow (show)
{
document.SubmitIt.show.value = show ;
document.SubmitIt.submit() ;
}
function createshow ()
{
document.SubmitIt.job.name = "show_create" ;
document.SubmitIt.submit() ;
}
<input type="hidden" id="show" name="show" value="">
<input type="hidden" id="job" name="show_update">
<a href="javascript:createshow()">*create new*</a>
<br><a href="javascript:submitshow('anc')">anc</a>
so instead of using the table and submit buttons, I was able to use hidden values/names and javascript to do the same thing.