开发者

How to parse a local XML file in browser?

We have a website that has the option to search. We want to put this website on a CD and we want to preserve the search functionality. Because we want it to function offline also we can't use a database sow e thought we use an XML file as "storage".

Now the problem is that we can't read the local xml开发者_运维技巧 file using javascript because some browsers consider this a security problem.

How to read and use a local XML file for our offline website? What technology can we use to achieve that?


Well, you could always embed a signed java applet. This will give you full filesystem access. The java applet can read and parse the XML file and send the data to a JavaScript function on your page.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜