W3C home > Mailing lists > Public > www-style@w3.org > September 2005

Re: Simple template-based editing

From: Bert Bos <bert@w3.org>
Date: Sat, 1 Oct 2005 00:54:38 +0200
To: www-style@w3.org
Message-ID: <20050930225438.GB2708@accueil.w3.org>

On Thu, Sep 29, 2005 at 04:12:54PM -0700, Andrew Fedoniouk wrote:
> Bert,
> 
> I would like to ask question common to both html::contetEditable and 
> css::editable solutions:
> 
> How edited content supposed to be saved/sent?

First of all, forget about forms. This has nothing to do with them. 
Forget about clients and servers, too. I'll come back to them later,
but you don't need them.

The goal is simply to create an HTML file with an HTML editor (or an
XML file, but let's take HTML) and to make that as easy as possible. 
Many editors (Dreamweaver, GoLive, Nvu, Quanta, etc.) provide
templates. But their template formats aren't interchangeable, even
though most of them are very similar and simple in functionality. So
why not create a generic solution?

Then the answer to the question of how to save the file after editing
is clear: just press the "Save" button.

Back to servers and clients, because editing files remotely with HTTP
PUT is a wonderful experience that is hard to imagine until you have
tried it. (Unfortunately, Nvu makes it more complex than needed; in
Amaya, there is no difference between saving remotely or locally.) If
the template you are editing is a file on some server, then the Save
button by default should save back to the same location on that server
(or to the "Location" header in the server's response). That is what
HTTP PUT is for. If the PUT is successful, all you get back is a
simple "OK" (meaning: the file has been installed successfully at the
URL you gave). Which is quite different from a GET or POST, which give
you back a new document, but don't change the files on the server.



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Friday, 30 September 2005 22:54:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:40 GMT