What is necessary to make a link create a hidden field like this: <input name="show" type="hidden" value="ang"> (the value is dynamically created) and then submit it like this would: <input name=show_search type=submit>?
(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() ;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.