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

Java Development

Reply
New Contributor
caseynashvegas
Posts: 7
Registered: ‎11-02-2012
My Carrier: Developer

jQuery XHR Status Code 0 within BrowserField using HTTPS REST service

I have html page that I am including in my application package and running within the BrowserField control.  From that page I am making a jQuery $.post request to a remote web server.  I can debug and see that the call is made and return to the containing application successfully, however when it gets back to the page jQuery is not getting the results if the REST services is https, but it does for http.

 

In my BrowserFieldConfig I have set ALLOW_CS_XHR to true  I have implemented a custom controller for the BrowserField that allows me to inspect the request, and I can debug and see the results comming just fine. 

 

Any ideas?

Please use plain text.
New Contributor
melisgio
Posts: 6
Registered: ‎12-04-2012
My Carrier: Developer

Re: jQuery XHR Status Code 0 within BrowserField using HTTPS REST service

I have the same problem. Any help?

Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Carrier: Orange

Re: jQuery XHR Status Code 0 within BrowserField using HTTPS REST service

Can you try async:true in your Ajax post call an try

 

$.ajax({
        url:        filename,
        async:      true,
        contentType:'text/plain',
        dataType:   'text',
        success:    function(data, status) {
                        success(data, status);
                    },
        error: function(xhr, textStatus, errorThrown) {
                     error(xhr, textStatus, errorThrown);
                    }

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.