Ver Mensaje Individual
  #9 (permalink)  
Antiguo 11/12/2015, 12:43
rprado2008
 
Fecha de Ingreso: septiembre-2015
Mensajes: 39
Antigüedad: 9 años, 4 meses
Puntos: 0
Respuesta: consulta sobre valor devuelto en un <div> por ajax

Este es el archivo del frame izquierdo, es el invFicLft.php (como es tan largo, lo voy a colocar a pedazos)

Código PHP:
Ver original
  1. <?php
  2. session_start(); //Inicio de Sesion
  3. include "conexion.php";
  4. ?>
  5. <html>
  6. <head>
  7. <script src="ajax.js"></script>
  8. <script>
  9. function myFunction(str)
  10. {
  11. loadDoc("q="+str,"proc.php",function()
  12.   {
  13.   if (xmlhttp.readyState==4 && xmlhttp.status==200)
  14.     {
  15.     if(xmlhttp.responseText==""){
  16.         return;
  17.         }
  18.         else{
  19.     document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
  20.     }
  21.     }
  22.   });
  23. }
  24. function myFunction2(str)
  25. { //esta funcion dee mostrar el valor que se eligió
  26. loadDoc("r="+str,"proc22.php",function()
  27.   {
  28.   if (xmlhttp.readyState==4 && xmlhttp.status==200)
  29.     {
  30.         if(xmlhttp.responseText==""){
  31.         return;
  32.         }
  33.         else{
  34.      document.getElementById("myDiv2").innerHTML=xmlhttp.responseText;</script>