写入文件使用jQuery的服务器上?器上、文件、jQuery

2023-09-10 21:40:51 作者:浪:漫:野:人

我开发需要XML文件的读取和写入的应用程序。阅读我写得到了覆盖,但写可能呢?我的web应用程序的布局是这样的: ../includes/(无关) ../content.xml(XML要写入) ../index.html(无关) ../admin.html(文件与写) pciated任何帮助AP $ P $,表示感谢。

I am developing an application which requires the reading and writing of XML files. Reading I've got covered, but is writing possible at all? The layout of my webapp is like this: ../includes/ (irrelevant) ../content.xml (xml to be written to) ../index.html (irrelevant) ../admin.html (file to write with) Any help appreciated, thanks.

推荐答案

您将需要编写一些类型的表单处理程序或Web服务的服务器端。一旦做到这一点,你可以使用AJAX调用表单处理程序或服务,提交数据的方式。

You will need to write some type of form handler or web service on the server side. Once this is done you can use AJAX to call the form handler or service and submit data that way.

示例 - form.html - >提交 - > formhandler.php - > content.xml中