Ver Mensaje Individual
  #56 (permalink)  
Antiguo 11/01/2013, 12:01
carlosuc99
 
Fecha de Ingreso: junio-2011
Mensajes: 342
Antigüedad: 12 años, 10 meses
Puntos: 5
Exclamación Respuesta: Problema con require_once

SIIIIIIII, ya lo he logrado!!!!!

El script de Ajax

Código Javascript:
Ver original
  1. <script>
  2.     function edit(str){
  3.            
  4.             var conexion;
  5.         if (window.XMLHttpRequest)
  6.             {
  7.             conexion=new XMLHttpRequest();
  8.             }
  9.         else
  10.             {
  11.             conexion=new ActiveXObject("Microsoft.XMLHTTP");
  12.             }
  13.         conexion.onreadystatechange=function()
  14.             {
  15.             if (conexion.readyState==4 && conexion.status==200)
  16.             {
  17.             document.getElementById("editaircraftdialog").innerHTML=conexion.responseText;
  18.                 $( "#editaircraftdialog" ).dialog({
  19.                 autoOpen: true,
  20.                 width: 425
  21.                 });
  22.  *          }
  23.         }
  24.     conexion.open("GET","edit.php?icao="+str,true);
  25.     conexion.send();
  26.     }
  27. </script>

Y en el while:

Código PHP:
Ver original
  1. echo "<a href=\"#\" onclick=\"edit('".$row["ICAO"]."')\">Edit</a>";

Y luego en el edit.php pongo el archivo para editar.