Hello, I have a question. I want to reduce the amount of elements of my table in jsp by using a Modal (popout) window. I just have doubts about how I'm going to do it. The image below shows how it works, clicking on the "More info" button would open my modal window for the fields in my table. Would an action be required to fire the fields in the popout?
Thebuttoncodelookslikethis:
<tdclass="center"><a class="btn btn-info"
href="FuncionarioListaController?action=editar&matricula=<c:out value="${funcionario.matricula}"/>">
<i class="glyphicon glyphicon-edit icon-white"></i> Editar
</a> <a class="btn btn-danger"
href="FuncionarioListaController?action=delete&matricula=<c:out value="${funcionario.matricula}"/>">
<i class="glyphicon glyphicon-trash icon-white"></i> Deletar
</a> <a class="btn btn-warning"
onclick="document.getElementById('pop').style.display='block';">
<i class="glyphicon glyphicon-flag icon-white"></i> Mais
Informações
</a></td>
And the part that activates the Modal is like this:
<style>
#pop{
display:none;
position:absolute;
top:25%;
left:auto%;
padding:10px;
width:300px;
height:200px;
border:1px solid #d0d0d0}
</style>
<div id="pop">
<a href="#" onclick="document.getElementById('pop').style.display='none';">
[Fechar]</a>
<br />
*aqui vai os elementos*
</div>
Thank you very much for the help!