Welcome!

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

Reply
Visitor
bikashbinay
Posts: 1
Registered: ‎12-21-2012
My Device: Curve 9220

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 :"http://192.168.1.190:8181/Asf/User/myService",                                     
    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);}});