Is it possible to get an XML file (not HTML) from a server, add/remove/edit particular parts of it with client-side JavaScript, and then send it back to the server to save it? JSON or any other markup/data interchange format works too.
Yes. Using jQuery...
$.get("myGetUrl.php", function(data) {
var xml = $(data);
xml.find("myNode").text("newValue");
$.post("myPostUrl.php", xml, function(resp) {
alert(resp);
}, "xml");
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With