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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
VansFannel
Posts: 165
Registered: ‎03-04-2011

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.

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,696
Registered: ‎10-16-2008
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
Please use plain text.