写入文件使用jQuery的服务器上? [英] Writing to a file on a server with jQuery?

查看:383
本文介绍了写入文件使用jQuery的服务器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发需要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中

这篇关于写入文件使用jQuery的服务器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆