I have this problem with an Apache Cordova Proyect... the debug works perfect with Android Emulator an IOS.... but with windows I get a NetworkError in function (resulta).... this is my code:

function Vendedores() {
    $.ajax({
        type: "POST",
        url: 'http://' + document.getElementById("servidor").value + '/Proformas.aspx/CargaVendedores',
        data: '{pnumero:"0"}',
        contentType: "application/json; charset=utf-8",
        datatype: "json",
        crossDomain: true,
        async: false,
        success: function (resulta) {
            $.each(resulta, function (i, field) {
                //some stuff....
            });
        },
        error: function (resulta) {
            alert("no se pudo cargar los vendedores, revisar  conectividad con el servidor");
        },
    });
}
0

There are 0 best solutions below