Reputation: 479
I wanted to know if there is any way to read write and overwrite external files using javascript or jquery or just another way to work with local data for a html/javascript app?
Not a database just a file like xml or anything else suitable for the task!
Upvotes: 0
Views: 1913
Reputation: 11
$(document).ready(function() {
$.ajax({
type: "GET",
url: "XMLFile/CRF_STRUCT_EXTRACT_SUPPORT.xml",
dataType: "xml",
success: xmlParser
});
});
function xmlParser(xml) {
// do anything with xml file here.
}
Upvotes: 1
Reputation: 191
Not knowing your needs and requirements for this project I would check out local storage (HTML5). Your can read more about it at http://diveintohtml5.info/storage.html
Upvotes: 1