开发者

Reading XML file in an offline web application

开发者 https://www.devze.com 2023-03-09 12:30 出处:网络
I\'m very very new in HTML and JavaScript development. My goal is to develop a WebWorks Playbook app, but as it is identical to an Offline HTML5 app I ask this:

I'm very very new in HTML and JavaScript development.

My goal is to develop a WebWorks Playbook app, but as it is identical to an Offline HTML5 app I ask this:

I want to read an XML file using JavaScript. Because it is an Offline applicat开发者_运维问答ion I don't know how to get access to XML file.

Do you know how can I get access to this XML file?

And then, how can I read it? May I use jQuery?


You can use HTML5's localStorage to store the XML file in user's browser(as a string).
Then when offline, read it from localStorage.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号