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
Developer
VansFannel
Posts: 166
Registered: ‎03-04-2011
My Device: Playbook

Reading XML files that are in my webworks folder

I'm developing a WebWorks app for PlayBook.

 

I have some XML files with some data. I need to read this data using jQuery (or JavaScript).

 

How can I do that? How can I read a XML file?

 

I've found some examples that uses AJAX to read file, but I don't think this is the right way.

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Reading XML files that are in my webworks folder

You should be able to simply do a local AJAX call to the file and then use the responseXML property of the XMLHttpRequest object.

 

To get to local resources you can use local:///myfile.xml

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter