XForm validation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

XForm validation

Pascal Heus
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Is it possible to <xform:bind> an element to validate its content
against an external database/URL?
For example, in a user registration form, I would like to make sure
the account name does not already exists in the user DB.
Can I do this without having to submit the form?
thanks
<p/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFEDzIb6NKXJLg3tfcRAhepAJ4kRtyX+sKFrJtoVynrpsuSW5hhFQCeMDBL
OdGulAghunWGnvbxmuIxhTk=
=1tCs
-----END PGP SIGNATURE-----




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForm validation

Alessandro  Vernet
Administrator
Hi Pascal,

In this case you would have to communicate with the server to check if
the user name exists already. But you can do this in the background,
that is: without reloading a page, with an <xforms:submission
replace="instance"> that is triggered when the end-user clicks on a
button "check if user name is available", or just when he tabs out of
the "user name" text field.

We don't have an example that does exactly this, but you can look at
the Instant Translation example where a submission happens on the
background and information is displayed in the page based on the
result of that submission.

Alex

On 3/8/06, Pascal Heus <[hidden email]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Is it possible to <xform:bind> an element to validate its content
> against an external database/URL?
> For example, in a user registration form, I would like to make sure
> the account name does not already exists in the user DB.
> Can I do this without having to submit the form?
> thanks
> <p/>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.1 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFEDzIb6NKXJLg3tfcRAhepAJ4kRtyX+sKFrJtoVynrpsuSW5hhFQCeMDBL
> OdGulAghunWGnvbxmuIxhTk=
> =1tCs
> -----END PGP SIGNATURE-----
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet