Ver Mensaje Individual
  #5 (permalink)  
Antiguo 08/05/2013, 16:02
alex1084
 
Fecha de Ingreso: abril-2008
Ubicación: El Salvador
Mensajes: 736
Antigüedad: 16 años
Puntos: 47
Respuesta: No se muestra datos php y ajax

Mira ocupa librerias ya creadas facilitan mucho la vida...

No estoy muy familiarizado con esto

Código Javascript:
Ver original
  1. //Browser Support Code
  2. function ajaxFunction(){
  3.  var ajaxRequest;  // The variable that makes Ajax possible!
  4.    
  5.  try{
  6.    // Opera 8.0+, Firefox, Safari
  7.    ajaxRequest = new XMLHttpRequest();
  8.  }catch (e){
  9.    // Internet Explorer Browsers
  10.    try{
  11.       ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
  12.    }catch (e) {
  13.       try{
  14.          ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
  15.       }catch (e){
  16.          // Something went wrong
  17.          alert("Your browser broke!");
  18.          return false;
  19.       }
  20.    }
  21.  }
Pero con la librerias como jquery no necesitas andar evaluando nada de esto..

Además con una libreria hay muchas cosas prefabricadas y no necesitas reinventar la rueda..

http://docs.jquery.com/Tutorials#Tut...n_espa.C3.B1ol