Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 1
Registered: ‎12-21-2012
My Device: Curve 9220
My Carrier: Docomo

Ajax call in blackberry returns status=0

The following piece of codes work fine in android,ios.But in blackberry request is going to server and server is responding . But Ajax fires error function with status=0,readystate=0 and Network err:XMLHttpRequestException 101.
How to resolve this issue?

 $.ajax({    url :"",                                     
    type :"POST",//cache : false,    crossDomain:true,    data : pjsonstring,//contentType: "application/json",    dataType :'json',    timeout :50000,    success :function(json1){    alert("in success");        fnsetjson(json1);},    error :function(xhr , textStatus , errorThrown){        alert("Error- Status: "+ textStatus +" xhr Status: "+ xhr.status +" xhr Response Text:"+ xhr.responseText);}});