Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/06/2011, 22:31
Avatar de maycolalvarez
maycolalvarez
Colaborador
 
Fecha de Ingreso: julio-2008
Ubicación: Caracas
Mensajes: 12.120
Antigüedad: 15 años, 9 meses
Puntos: 1532
Respuesta: Problema al llamar javascript

usa una función más completa y crossbrowser para obtener el XMLHttpRequest:

Código Javascript:
Ver original
  1. function getajax(){
  2.         try {
  3.             xmlhttpobj = new ActiveXObject("Msxml2.XMLHTTP");
  4.         } catch (ex) {
  5.             try {
  6.                 xmlhttpobj= new ActiveXObject("Microsoft.XMLHTTP");
  7.             } catch (ex2) {
  8.                 xmlhttpobj= false;
  9.             }
  10.         }
  11.         if (!xmlhttpobj && typeof XMLHttpRequest!='undefined') {
  12.             xmlhttpobj = new XMLHttpRequest();
  13.         }
  14.         return xmlhttpobj;
  15.     }

recuerda usar var para declarar variables.
__________________
¡Por favor!: usa el highlight para mostrar código
El que busca, encuentra...