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

Android™ Runtime Development

Reply
New Contributor
Posts: 8
Registered: ‎03-27-2013
My Device: BlackBerry 10 Dev Alpha

Convert Android app (with a broswer) to Bar, AJAX fails...

Someone has already converted an android application to a bb10 (bar) app that featured a post ajax call to a server and it s work?

Like this:

 

$.ajax({
             type: "POST",
             url: "http://***************************.json",
             datatype: "json",
             crossDomain: "true",
             contentType: "application/json",
             data:'{"technicalNumber":"********","password":"****"}',
             scriptCharset: "utf-8",
             success : function(data) {
                    // do stuff
             },error: function(object, status, error){
                   // do other stuff
                   alert(error);
             }
}) ;

 Because mine does not work ...

 

Thks in advance,

Ben

New Contributor
Posts: 8
Registered: ‎03-27-2013
My Device: BlackBerry 10 Dev Alpha

Re: Convert Android app (with a broswer) to Bar, AJAX fails...

[ Edited ]

More information about error on this: