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

Re: XForms doubt

From: Allan Beaufour <beaufour@gmail.com>
Date: Wed, 31 May 2006 10:57:20 +0200
Message-ID: <90d6cb0e0605310157j21f4008ew45b9a91116d61d36@mail.gmail.com>
To: "Merin Shaji" <merinshaji@gmail.com>
Cc: www-forms@w3.org

On 5/30/06, Merin Shaji <merinshaji@gmail.com> wrote:
> It is working fine for me. But I want to display an error message when the
> user types something in a text box (<xforms:input>) and takes the focus out
> of that text box(DomFocusOut). For example, I want to display the text
> "Please enter a positive integer" when the user types in the text box and
> the focus is changed from the text box. I have given <xforms:bind> for that
> text box reference with type="xs:positiveInteger". It shows a red
> exclamation mark for invalid entries. But I want to display my custom text
> in a pop up window.

What alert does is implementation specific. So if you want a modal
message, you need your message to hook into the xforms-invalid event,

      <xforms:input ref="val">
        <xforms:label>Value: </xforms:label>
	<xforms:message level="modal" ev:event="xforms-invalid">

... Allan
Received on Wednesday, 31 May 2006 08:57:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC