I'm building native web app with jquery mobile and phonegap. Data is loaded from external server. Now data must be loaded using ssl, but I'm getting error:
NETWORK_ERR: XMLHttpRequest Exception 101
I tried Chrome REST client and eveerything works just fine.
Code:
WebService.prototype.execute = function (url, params) {
    var result = {
        HttpResponseObject : {},
        onSuccess : function (data) {       
            result.HttpResponseObject.response = JSON.parse(data);
        },
        onError : function (XMLHttpRequest, textStatus, errorThrown) {          
            $.mobile.hidePageLoadingMsg();          
            // TODO some logging for errors
            console.log(JSON.stringify(XMLHttpRequest));
            console.log(JSON.stringify(textStatus));
            console.log(JSON.stringify(errorThrown));       
        }
    };
    $.ajax({
        url:            url,
        type:           'POST',
        async:          false,
        data:           JSON.stringify(params),
        dataType:       'text',
        contentType:    'application/json',
        error:          result.onError,
        success:        result.onSuccess
    });
    return result;
};
 
     
     
     
    