Hi,
We are using orbeon forms 3.7.1 developer release for our web application. We decided to use captcha component in our Registration Form. But as for as I know Orbeon forms does not have the support for captcha component i.e. it's not implemented in orbeon forms. So please can you guys give me some directions how I should do that? |
Administrator
|
On Mon, Oct 5, 2009 at 4:24 PM, TirupatiReddy <[hidden email]> wrote:
> We are using orbeon forms 3.7.1 developer release for our web > application. We decided to use captcha component in our Registration Form. > But as for as I know Orbeon forms does not have the support for captcha > component i.e. it's not implemented in orbeon forms. > > So please can you guys give me some directions how I should do that? I would do this with an XBL component. In fact I was considering to do it at some point, but the weather must have been too sunny that particular day :). XBL is not super-complicated but you have to get into it. I recommend you start by having a look at the "Guide to Using and Writing XBL Components" (http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide). Then you can look at the source of some of the components that come with Orbeon Forms. You'll find those in: http://github.com/orbeon/orbeon-forms/tree/master/src/resources-packaged/xbl/orbeon/. And of course, let us know if you have any question. Alex -- Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Alessandro Vernet wrote:
> On Mon, Oct 5, 2009 at 4:24 PM, TirupatiReddy <[hidden email]> wrote: > >> We are using orbeon forms 3.7.1 developer release for our web >> application. We decided to use captcha component in our Registration Form. >> But as for as I know Orbeon forms does not have the support for captcha >> component i.e. it's not implemented in orbeon forms. >> >> So please can you guys give me some directions how I should do that? >> > > I would do this with an XBL component. In fact I was considering to do > it at some point, but the weather must have been too sunny that > particular day :). XBL is not super-complicated but you have to get > into it. I recommend you start by having a look at the "Guide to Using > and Writing XBL Components" > (http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide). > Then you can look at the source of some of the components that come > with Orbeon Forms. You'll find those in: > http://github.com/orbeon/orbeon-forms/tree/master/src/resources-packaged/xbl/orbeon/. > And of course, let us know if you have any question. > > Alex > Below an example of a "Math Captcha" in XForms (it would be nice if it could be embedded in a XBL component in Orbeon Forms): In the model : <xforms:instance id="captcha"> <instance xmlns=""> <value1/> <value2/> <sum/> </instance> </xforms:instance> <xforms:action ev:event="xforms-ready"> <xforms:setvalue ref="instance('captcha')/value1" value="xs:integer(random()*20)"/> <xforms:setvalue ref="instance('captcha')/value2" value="xs:integer(random()*20)"/> </xforms:action> <xforms:bind nodeset="instance('captcha')/sum" type="xs:positiveInteger" constraint="number(.) and number(instance('captcha')/value1)+number(instance('captcha')/value2)=number(.)"/> Next in the body : <xforms:group ref="xxforms:instance('captcha')"> <fieldset> <legend>Math Captcha</legend> <div class="ori-category-help">Afin déviter des soumissions automatisées et intensives réalisées par des robots malveillants, nous vous demandons de bien vouloir répondre à cette simple question mathématique avant de valider le formulaire.</div> <xforms:output ref="value1"/> + <xforms:output ref="value2"/> = <xforms:input ref="sum" incremental="true"> <xforms:label class="hidden">Math Captcha</xforms:label> <xforms:alert>ne correspond pas à la somme attendue</xforms:alert> </xforms:input> </fieldset> </xforms:group> Vincent. -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Thanks Alex and vincent for your responses.
For a short term solution I used the math Captcha suggested by Vincent. Now I need to go through XBL component and then I implement later using XBL. Vincent: Is there any simple way to generate Random text instead of Random number ?
|
Free forum by Nabble | Edit this page |