Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/05/2010, 08:30
Avatar de engonga
engonga
Usuario no validado
 
Fecha de Ingreso: marzo-2002
Ubicación: Buenos Aires
Mensajes: 1.300
Antigüedad: 22 años, 2 meses
Puntos: 8
problema con $.ajax() y internet explorer

hola tengo esta funcion

Código HTML:
var _ecAjaxDebug = false;
    
    function enviadatos(objDest){
        $(objDest).block({  
                message: "<h3>&nbsp;Loading</h3>",
                css: { opacity: '.8', backgroundColor: '#CCCCCC', border: '0', padding: '15px 0 0 0' },
                    overlayCSS: { backgroundColor: '#ededed' }
                            });
                            
                       
                        

        var ajaxUrl = 'action=hola es una prova<br />HOLA';
        
        if (_ecAjaxDebug == true) {
            window.open("ajax.php?" + ajaxUrl);
        } else {
            $.ajax({
                type: 'GET',
                dataType: 'html',
               
                url: 'ajax.php',
                data: ajaxUrl,
                
                cache: false,
                async: true,
                
               // success: function (data, textStatus) {
                 success: function(data){
                    $(objDest).html(data);
                    
                    $(objDest).unblock();
                    
                    
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    $(objDest).html("error = " + errorThrown +"/n TextStatus =" + textStatus +"/n XMLHttpRequest ="+ XMLHttpRequest);
                    $(objDest).unblock();
                    alert("error = " + errorThrown +"/n TextStatus =" + textStatus +"/n XMLHttpRequest ="+ XMLHttpRequest )
                }
            });
        }
        
    };
lo que pasa es que en firefox funciona correctamente

pero en internet explorer 8 se salta a error y me lanza el alert de error

Código HTML:
alert("error = " + errorThrown +"/n TextStatus =" + textStatus +"/n  XMLHttpRequest ="+ XMLHttpRequest )
alguien sabe por que?