Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/10/2012, 14:48
Avatar de fedefrankk
fedefrankk
 
Fecha de Ingreso: agosto-2007
Mensajes: 871
Antigüedad: 16 años, 9 meses
Puntos: 7
Respuesta: Cambiar contenido en un div

Solucionado.!! muchas gracias, que error tonto que tenia.. tengo que ler mas

se agradece..
Código Javascript:
Ver original
  1. <script type="text/javascript">
  2.     function ejec(pagina){
  3.    
  4.        
  5.        
  6.     var conexion;
  7.     if (window.XMLHttpRequest){
  8.         conexion = new XMLHttpRequest();
  9.     }else{
  10.           conexion=new ActiveXObject("Microsoft.XMLHTTP")
  11.     }
  12.   conexion.onreadystatechange=function(){
  13.       if(conexion.readyState==4 && conexion.status==200){
  14.      document.getElementById("midiv").innerHTML=conexion.responseText;
  15.   }
  16.   }
  17.     conexion.open("POST",pagina,true);
  18.     conexion.send();
  19.     }
  20. </script>
  21. </head>
  22.  
  23. <body>
  24.         <div id="midiv"></div>
  25. <button type="button" onClick="ejec('02.html')">Ejecutar</button>

Saludos Cordiales
fede