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

XForms doubt

From: Merin Shaji <merinshaji@gmail.com>
Date: Tue, 30 May 2006 17:11:15 +0530
Message-ID: <c95380bd0605300441t30cf4c5etc4d2480858b128d@mail.gmail.com>
To: www-forms@w3.org

I am trying to display error messages using XForms to display messages
similar to Javascript alerts. I tried <xforms:message> and <xforms:alert>.
Both didn't work.

I tried the example below:

<xforms:message level="modal" ev:event="DOMActivate">You clicked

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.

Can some one please help me?

Many Thanks
Received on Tuesday, 30 May 2006 11:58:59 UTC

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