Ver Mensaje Individual
  #11 (permalink)  
Antiguo 01/01/2010, 23:00
Avatar de jackson666
jackson666
 
Fecha de Ingreso: noviembre-2009
Ubicación: Buenos Aires, Argentina
Mensajes: 1.971
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: No carga mi javascript, ... !Mas claro!

Todo tuyo

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  4.     <meta name="author" content="Jackson666" />
  5.     <title>Untitled 1</title>
  6. </head>
  7. <script type="text/javascript">
  8. function startAjax(){
  9.     var xhr = new XMLHttpRequest();
  10.     xhr.open("GET",'mostrar.php');
  11.     xhr.onreadystatechange=function(){
  12.         if(xhr.readyState==4){
  13.             if(xhr.status==200){
  14.                 document.getElementById('rta').innerHTML=eval(xhr.responseText);                
  15.             }
  16.         }
  17.     }
  18. xhr.send(null);
  19. }
  20.  
  21. <a href="javascript:startAjax();">Daleeeeeee</a>
  22. <div id="rta"></div>
  23. </body>
  24. </html>

mostrar.php

Código PHP:
Ver original
  1. alert('hola');


EDIT: olvide decirlo, solo anda en firefox
__________________
HV Studio
Diseño y desarrollo web