I have a menu of tabs, and I would like to refresh only the tab I'm in, keeping the other's data.
Menu:
<body onLoad="AlternarAbas('td_cada','div_cada')">
<table width="100%" height="100" align="left" valign="top" cellspacing="0" cellpadding="0" border="0" style="border-left: 1px solid #0000FF;">
<tr>
<td style="border-color:blue" height="20" width="50" class="menu" id="td_cada" onClick="AlternarAbas('td_cada','div_cada')">Incluir</td>
<td style="border-color:blue" height="20" width="50" class="menu" id="td_cons" onClick="AlternarAbas('td_cons','div_cons')">Consultar</td>
</tr>
<tr>
<td height="200" style="border-color:blue" width="300" class="tb-conteudo" valign="top" colspan="2" >
<div id="div_cada" width="100" class="conteudo" style="display: block; padding-top:5px;">
<table border="0" width="50%">
<tr>
<td >
<iframe style="border-radius:20px;" scrolling="no" src="../sai_cada_usua/sai_frm_incl_usua.php" width="830" height="310" >
</iframe>
</td>
</tr>
</table>
</div>
<div id="div_cons" class="conteudo" style="display: block; padding-top:5px;">
<table border="0" width="50%">
<tr>
<td>
<form>
<button type="button" value="Atualizar" style="height:26" style="width:5" size="10" onclick='javascript:parent.location.replace("../sai_cada_usua/sai_cons_usua.php")' width="830" height="300" >
<image src="../sai_imag/refresh.ico"> </button>
</form>
<iframe style="border-radius:20px;" scrolling="" src="../sai_cada_usua/sai_cons_usua.php" width="830" height="290" >
</iframe>
</td>
</tr>
</table>
</div>
In this div ~> <div id="div_cons" class="conteudo" style="display: block; padding-top:5px;">
, I have a button
that calls the screen again ("a atualizar
"). But as he calls all the screens, he erases what he may have content in the others. Is there any way to make a refresh
only in it? Any specific button, etc?
example: JSF