El problema es que ejecuto un query para mostrar los datos con ayuda de un iframe anteriormente me funcionaba adecuadamente pero el dia de hoy que se realizo una prueba al sistema ocurrio el problema que ahora no me muestra los datos en la misma pantall, si no que abre otra pestaña para visualizar los datos del iframe alguien puede ayudarme les dejo el codogo completo
Formulario donde tengo el iframe
Código HTML:
Ver original<form id="formulario_lineas" name="formulario_lineas" method="post" action="frame_lineas.php" target="frame_lineas.php"> <table width="904" border="0" align="center" cellpadding="0" cellspacing="0"> <td colspan="8">Documentos requeridos para el proceso
</td> <td width="3"> </td> <td colspan="6"> </td> <td width="5"> </td> <td width="3"> </td> Docunerntos requeridos :
<input name="docs" type="text" class="cajaGrande" id="docs" onkeypress="return event.keyCode!=13" /> <img src="../botones/AGREGAR_DOC_.gif" width="107" height="25" onmouseover="style.cursor=cursor" onclick="validadoc()" /> <td width="62"> </td> <td width="149"><input type="hidden" name="idtar" id="idtar" /> <input type="hidden" name="empres2" id="empres2" value="<?php echo $as; ?>" />
</td> <td width="46"> </td> <td width="5"> </td> <td height="16"> </td> <td colspan="6"> </td> <td height="67"> </td>
<div id="lineaResultado"> <iframe width="100%" height="250" id="frame_lineas" name="frame_lineas" frameborder="0"> <ilayer width="100%" height="250" id="frame_lineas" name="frame_lineas"></ilayer> <input name="band" type="hidden" id="band" value="0" />
funcion javascript valida doc()
Código Javascript
:
Ver originalfunction validadoc(){
var mesaj="";
if(document.getElementById("id").value=="") mesaj ="Para agregar documentos debes de asignar una clave a la tarea.\n";
if(document.getElementById("docs").value=="") mesaj +="Debes de llenar información del documento";
if(mesaj !=""){
alert("Advertencia: \n\n " + mesaj);
}else{
document.getElementById("formulario_lineas").submit();
document.getElementById("docs").value="";
var bandera = parseInt(document.getElementById("band").value) ;
var res = parseInt(bandera) + parseInt(1);
document.getElementById("band").value=res;
}
}