W3C home > Mailing lists > Public > www-talk@w3.org > November to December 1997

Re: Form-based whatever (was: Form-based Device Input and Upload in HTML)

From: Lars Aronsson <lars@aronsson.se>
Date: Fri, 21 Nov 1997 16:24:10 +0100
Message-Id: <199711211524.QAA00567@rut.aronsson.se>
To: www-talk@w3.org
James Salsman <jsalsman@corp.webtv.net> posted an Internet-Draft:
>   the form.  However, this capability is limited because HTML forms 
>   don't provide a way to ask the operator to submit input from 
>   arbitrary sources such as audio devices like microphones.  Since 

This sounds great.  Actually, there are a lot more things that forms
could be used for than is the case today.  One is to turn HTML into a
spreadsheet viewer by implementing client-side calculations.  Has this
been discussed?  The same could be implemented in a Java applet, but I
think the forms way would be easier to use for plain mortals.

Today a form can look like this:

<FORM method=post action=script.cgi>
  <INPUT name=age size=10>
  <INPUT type=hidden name=currentyear value=1997>
  <INPUT type=submit value="Compute Your Birth Year" NAME="ComputeBirthYear">
</FORM>

And then the script.cgi would calculate which year the person was
born.  Instead, there could be new kind of input field "formula", like
this:

  <INPUT type=formula name="birthyear" value="currentyear - age" >

The variable names in "value" refers to the "name" of other input
fields in the same form.  This formula "Input" field would not present
a true "input field", but the calculated number in digits.  The value
would be recalculated as soon as anybody inputs another value in the
other input fields.

The calculated value of this new "formula" type of input field would
be sent to the server and the CGI script together with the other
values.

Practical uses would include calculating the sum value and due tax for
a shopping basket before submitting an order.

Comments?

No, I do not intend to implement this, but I think it would be nice to
have.


Lars Aronsson.
-- 
  Aronsson Datateknik           mailto:lars@aronsson.se
  Teknikringen 1e               http://www.aronsson.se/
  583 30 Linköping, Sweden      tel:+46-13-211720    fax:+46-13-211820
Received on Friday, 21 November 1997 10:25:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:23 GMT