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
Contributor
renegade428
Posts: 20
Registered: ‎09-30-2010
My Device: Not Specified

Unable to access responseXML in SDK v.2.1.1

Hello All,

 

I updated my sdk this morning and now my ajax calls are failing in my application.

 

var myReceivedData = xmlReq.responseXML.documentElement.childNodes[0].nodeValue;

 It seems I can no longer access the responseXML from an XMLHttpRequest call. The responseText contains the correct data but the responseXML appears to be null.

 

Any ideas?

 

Thank you for your time!

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Unable to access responseXML in SDK v.2.1.1

Which version of the BlackBerry operating system are you using?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Contributor
renegade428
Posts: 20
Registered: ‎09-30-2010
My Device: Not Specified

Re: Unable to access responseXML in SDK v.2.1.1

I tested it on the v5.0.0.977 9300 sim. I rolled back to v2.0.0.18 of the sdk and my code works fine again.

Please use plain text.
New Developer
nsanchez
Posts: 23
Registered: ‎03-12-2011
My Device: Bold 9700
My Carrier: Tigo

Re: Unable to access responseXML in SDK v.2.1.1

I have the same problem when using html5_init.js api for geolocation.

 

I take the responseText and parse it into XML  objects

 

 

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Unable to access responseXML in SDK v.2.1.1

Is this from inside a Worker thread, or on the main page JavaScript thread?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Developer
nsanchez
Posts: 23
Registered: ‎03-12-2011
My Device: Bold 9700
My Carrier: Tigo

Re: Unable to access responseXML in SDK v.2.1.1

On the main page JavaScript thread.   

 

I think that this API has conflict with the main XMLHttpRequest object.  

 

Fon example, when I try to change the headers, don't take this changes

Please use plain text.