1
I have a menu of tabs, and would like to clean (refresh) only in the tab where I am, keeping the data of other.
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>
Nessa div ~> <div id="div_cons" class="conteudo" style="display: block; padding-top:5px;">
, I have a button
that makes the screen call again ("a atualizar
"). But, as he calls all screens, he erases what may have content in the others. Is there any way to make a refresh
only on it? Some specific button, etc?
example : JSF
you should use ajax, to swap the contents of a single tab dynamically doing so refresh
– Tafarel Chicotti
Um' thanks for the tip!
– Felipe