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
Highlighted
New Contributor
Posts: 6
Registered: ‎09-05-2013
My Device: 9300
My Carrier: Indosat
Accepted Solution

XML Http Request only returns 'undefined' ??

Hello everyone,

XML Http Request only returns 'undefined'

Any idea what's going on?

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: XML Http Request only returns 'undefined' ??

Have you whitelisted the domain(s) that you are trying to access in config.xml?

https://developer.blackberry.com/html5/documentation/access_element_834677_11.html

 

 

Otherwise, see this sample page which shows how to use XHR. Maybe there is a snippet missing in your code?

http://blackberry.github.io/WebWorks-Samples/kitchenSink/html/browser/xhr.html

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Contributor
Posts: 6
Registered: ‎09-05-2013
My Device: 9300
My Carrier: Indosat

Re: XML Http Request only returns 'undefined' ??

Nicee...

Problem Solved...

Many Thanks