Yii2 jquery ajax not working on IE; XMLHttpRequest: Network error 0x800c000

When I want to use ajax :

$(document).on("click",".wyslijPrzes",function(){
        var _this = $(this);
        var service_id = _this.attr("data-service_id");
        var form = $("#give_the_package_form");
        $.ajax({
            type:"POST",
            dataType:"json",
            url:"/order/ajax_create_order_guest",
            data:{
                service_id:service_id,
                country_code:$("#orderaddress-deliveryaddress-country_code").val(),
                weight:$("#ordershipment-weight").val(),
                shipment_type: form.find("input:radio[name='OrderShipment[shipment_type_code]']:checked").val(),
                dim1:$("#ordershipment-dimension1").val(),
                dim2:$("#ordershipment-dimension2").val(),
                dim3:$("#ordershipment-dimension3").val(),
                typ_kraj: form.find("input:radio[name='Order[typ_kraj]']:checked").val()
            }
        });
    });

It’s working on firefox and chrome, but not working on any version of IE.
I have an error :

SCRIPT7002: XMLHttpRequest: Network error 0x800c0008,

A dont know why it happening, and I cant find any solution.. Please help.

Thanks for answers !


Source: jquery

Leave a Reply