- From: Iņaki Salinas Bueno <inksalinas@gmail.com>
- Date: Tue, 5 Dec 2006 19:51:23 +0100
- To: "Klotz, Leigh" <Leigh.Klotz@xerox.com>
- Cc: "Rafael Benito" <rbenito@satec.es>, www-forms <www-forms@w3.org>
- Message-ID: <cd3c31800612051051g3fc9667fhd9da3543e80f68cf@mail.gmail.com>
So far I have solved it introducing an element, as says Rafael (thanks), although have introduced the element in a new instance because I did not want to corrupt the useful instance with an auxiliary element. I would like to know the way to do it directly, without intermediate elements. It seems that the option that Leigh says is direct, but I don't understand it: Or on ev:event="xforms-submit" inside submission, so it will change before the submit happens instead of afterwards. Is it a new option or is it an adding to the option commented by Rafael? Another option is a switch, with a toggle on xforms-submit inside the submission, using a different presentation UI (such as a bunch of outputs) inside the second case of the switch. It consists of having a twin set of outputs, but bound to the attribute readonly=true, visible based on switch? Thank you Iņaki 2006/12/5, Klotz, Leigh <Leigh.Klotz@xerox.com>: > > Or on ev:event="xforms-submit" inside submission, so it will change > before the submit happens instead of afterwards. > > Another option is a switch, with a toggle on xforms-submit inside the > submission, using a different presentation UI (such as a bunch of outputs) > inside the second case of the switch. > > Leigh. > > ------------------------------ > *From:* www-forms-request@w3.org [mailto:www-forms-request@w3.org] *On > Behalf Of *Rafael Benito > *Sent:* Monday, December 04, 2006 2:10 AM > *To:* 'Iņaki Salinas Bueno'; 'www-forms' > *Subject:* RE: readonly inputs when form is submitted > > 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 Tuesday, 5 December 2006 18:58:50 UTC