Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/07/2011, 16:42
sidebass1
 
Fecha de Ingreso: julio-2010
Mensajes: 4
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Chrome Datos via Post de un Form llegan en blanco

Bueno , ya esta arreglado, modifique el javascript haciendo un form temporal y ahora anda en todos los navegadores!
<script type="text/javascript">

function mandar_post(URL, PARAMS) {
var temp=document.createElement("form");
temp.action=URL;
temp.method="POST";
temp.target="_parent";
temp.style.display="none";

for(var x in PARAMS) {
var opt=document.createElement("textarea");
opt.name=x;
opt.value=PARAMS[x];
temp.appendChild(opt);
}
document.body.appendChild(temp);
temp.submit();
return temp;
}

function ver_presentacion(id_agen,cadena) {
mandar_post("ver_presentacion.php", {
id_presentacion:id_agen,
cadena_busqueda:"cadena"
})
}

function modificar_presentacion(id_agen,cadena) {
mandar_post("modificar_presentacion.php", {
id_presentacion:id_agen,
cadena_busqueda:"cadena"
})
}

function eliminar_presentacion(id_agen,cadena) {
mandar_post("eliminar_presentacion.php", {
id_presentacion:id_agen,
cadena_busqueda:"cadena"
})
}

function inicio() {
var numfilas=document.getElementById("numfilas").value ;
var indi=parent.document.getElementById("iniciopagina" ).value;
var contador=1;
var indice=0;
if (indi>numfilas) {
indi=1;
}
parent.document.form_busqueda.filas.value=numfilas ;
parent.document.form_busqueda.paginas.innerHTML="" ;
while (contador<=numfilas) {
texto=contador + "-" + parseInt(contador+9);
if (indi==contador) {
parent.document.form_busqueda.paginas.options[indice]=new Option (texto,contador);
parent.document.form_busqueda.paginas.options[indice].selected=true;
} else {
parent.document.form_busqueda.paginas.options[indice]=new Option (texto,contador);
}
indice++;
contador=contador+10;
}
}

</script>

y en programa el submit:
<td width="3%">
<div align="center">
<img src="../../imagenes/modificar.png" width="16" height="16" border="0" onClick="modificar_presentacion(<?php echo $id_presentacion ?>,'<?php echo $cadena_busqueda; ?>')" title="Modificar" onMouseOver="style.cursor=cursor">
</div>
</td>
<td width="3%">
<div align="center">
<img src="../../imagenes/ver.png" width="16" height="16" border="0" onClick="ver_presentacion(<?php echo $id_presentacion ?>,'<?php echo $cadena_busqueda; ?>')" title="Visualizar" onMouseOver="style.cursor=cursor">
</div>
</td>
<td width="3%">
<div align="center">
<img src="../../imagenes/eliminar.png" width="16" height="16" border="0" onClick="eliminar_presentacion(<?php echo $id_presentacion ?>,'<?php echo $cadena_busqueda; ?>')" title="Eliminar" onMouseOver="style.cursor=cursor">
</div>
</td>

Gracias por todo!