ajax - Reading local XML file from browser using javascript -
i writing html page myself(i not want use webserver) need read xml file (on same folder .html file) , parse data it. name of file known , not dynamic. now, aware due restrictions browsers not allow cross origin requests on ajax calls because of security restrictions. seems option filesystem api.
could me out code same please?
in short
1. read xml file javascript once page loads in browser .
2. name of xml file known , on same directory level.
3. how use filesystem api reading file , parsing xml
constraints
1. dont want use web-server page(since single page app).
2. dont want use javascript libraries(like jquery etc).
3. dont want tweak chrome adding flags.
4. alright if solution works on chrome.
thanks
Comments
Post a Comment