W3C home > Mailing lists > Public > public-forms@w3.org > October 2007

My action to produce examples of submission

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Fri, 05 Oct 2007 17:43:44 +0200
To: "John Boyer" <boyerj@ca.ibm.com>
Cc: "Forms WG" <public-forms@w3.org>
Message-ID: <op.tzqdy6fesmjzpq@acer3010>

Examples of Submission

1. Simple submission @@assuming we adopt method="get" as default

    <submission action="http://example.com/search" />

After doing relevance and validity checking on the data, submits the whole  
of the default instance asynchronously, encoded as a URL  
(x-www-form-urlencoded), to http://example.com/search. The result replaces  
the whole page.

2. Simple submission, replacing the instance:

    <submission action="http://example.com/prefill" replace="instance" />

The same as above, but replacing the instance with the returned result  
(which must be XML).

3. Replacing a different instance
    <submission action="http://example.com/prefill" replace="instance"  
instance="result" />

The same as above, but replacing a different instance.

4. Submitting a subtree of the instance
    <submission action="http://example.com/record" ref="event/dates" />

Submits the subtree of the default instance selected by the XPath  
expression "event/dates"

5. Saving to a file
    <submission action="file:results.xml" method="put" validate="false"  
replace="none" />

Saves the default instance to a file, without validation checking so that  
the instance is saved regardless of tis validity.

6. Submitting an instance that includes a file upload
    <submission method="form-data-post" action="http://example.com/photo" />

7. Submitting the default instance to a location where the action url is  
obtained dynamically from an instance

    <submission>
        <resource ref="instance('params')/action"/>
    </submission>

Steven
Received on Friday, 5 October 2007 15:43:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:45 UTC