W3C home > Mailing lists > Public > www-forms@w3.org > December 2006

RE: readonly inputs when form is submitted

From: Rafael Benito <rbenito@satec.es>
Date: Mon, 4 Dec 2006 11:09:31 +0100
To: 'Iņaki Salinas Bueno' <inksalinas@gmail.com>, "'www-forms'" <www-forms@w3.org>
Message-ID: <004801c7178c$4a8503c0$1a23a4d5@int.satec.es>
Iņaki,
 
A way to do it is to set the XPath expression of the @readonly to an
auxiliary data model element with the value false prior to the submission.
As the submission is done, you can set an action handler setvalue for the
xforms-submit-done and set the auxiliary data model element to true. So the
inputs will now be resdonly.
 
I hope this helps...
 
Regards,
 
Rafael Benito


  _____  

De: www-forms-request@w3.org [mailto:www-forms-request@w3.org] En nombre de
Iņaki Salinas Bueno
Enviado el: viernes, 01 de diciembre de 2006 10:35
Para: www-forms
Asunto: readonly inputs when form is submitted


I would like to turn inputs to readonly when the form related with its is
submitted.

I don't know how can I do it. I try with events but @readonly attribute
works with xpath, not with events, it is not thus?

How can I bind @readonly with a trigger, an action or a event?

Thank you
Iņaki
Received on Monday, 4 December 2006 10:09:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:08 GMT