W3C home > Mailing lists > Public > www-forms-editor@w3.org > February 2002

should setFocus and toggle be dynamic?

From: Ray Cromwell <ray.cromwell@oracle.com>
Date: Thu, 21 Feb 2002 15:19:14 -0800
To: <www-forms-editor@w3.org>
Message-ID: <001301c1bb2e$2f0e98a0$aeaf1990@rcromwell>
Right now, setFocus and toggle both work by using an ID. I propose
adding a "ref" attribute to allow them to compute this ID via XPath
expression. The use case is to toggle a switch/case dynamically or
transfer focus dynamically.
For example, you have a form taking a purchase order and the person can
pay by Credit Card, Check, or PayPal. Based on a <selectOne>, the person
choses their payment method, you would then like to <toggle> 3 different
UIs based on the selection value.
Received on Thursday, 21 February 2002 18:20:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:03 UTC