0

我正在构建一个可以在网络浏览器中开发文档的网络应用程序(例如,Zoho 的文档工具或 Google Docs 之类的东西)。就我而言,我有一组存储不同段落和其他信息的数组,以及在段落本身上存储元数据的并行数组。

整个 webapp 是用 jQuery 和相关的库/插件编写的。

有没有一种优雅的方法可以将其保存为服务器本身的文件?到目前为止,建议我使用隐藏表单将数组发布到服务器并将它们存储在某种 NoSQL 数据库中......这对我来说有点痛苦,我想知道(1)是否存在一种更优雅的方法,或者(2)有一个库/框架可以自动执行一些发送/发布/保存。

谢谢!

4

1 回答 1

0

You would need to create services that live on the server itself. These services would be methods such as (just as a simple example)

SaveDocument(User, Document) 
GetDocument(User, Document)

you would need to configure your web app to call these services and pass in the required parameters. Now as for how to do this, you could write the services in any number of languages (Java using JavaEE, C# using WCF to name a few, but you can also do this in python/ruby/etc) and then generate WSDL interfaces to the services that any number of other languages could call.

There are lots of resources available on the web that cover this, so pick a language you want to learn, or are already proficient in and google around on how to develop web services in that language.

Good luck!

于 2012-02-07T02:08:43.160 回答