Captcha"

From Documentation
m (Created page with 'init')
 
m
Line 1: Line 1:
init
+
{{ZKComponentReferencePageHeader}}
 +
 
 +
= Captcha =
 +
 
 +
*Demonstration: [http://www.zkoss.org/zkdemo/userguide/#f2 Capcha Demo]
 +
*Java API: <javadoc>org.zkoss.zul.Captcha</javadoc>
 +
*JavaScript API: <javadoc directory="jsdoc">zul.wgt.Captcha</javadoc>
 +
 
 +
= Employment/Purpose =
 +
 
 +
A <tt>captcha</tt> component can generate a special distortion image, also called a CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) image. Developers could set <tt>height </tt>and <tt>width </tt>for dimension of captcha. By default, captcha render the image with a randomly generated text, and developers can set <tt>value </tt>to assign a purposive text.
 +
 
 +
 
 +
= Example =
 +
 
 +
 
 +
[[Image:captcha.png]]
 +
 
 +
<source lang="xml" >
 +
<vbox>
 +
    <captcha id="cpa" length="5" width="200px" height="50px"/>
 +
</vbox>
 +
</source>
 +
 
 +
 
 +
=Supported events=
 +
 
 +
{| border="1" | width="100%"
 +
! <center>Name</center>
 +
! <center>Event Type</center>
 +
|-
 +
| <center><tt>onClick</tt></center>
 +
| [#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
 +
 
 +
<tt>'''Description:''' Denotes user has clicked the component.</tt>
 +
 
 +
<tt>Use getX(), getY() method get coordinates.</tt>
 +
 
 +
|}
 +
 
 +
=Supported Children=
 +
 
 +
*NONE
 +
 
 +
=Use cases=
 +
 
 +
{| border='1px' | width="100%"
 +
! Version !! Description !! Example Location
 +
|-
 +
| &nbsp;
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 +
 
 +
=Version History=
 +
 
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| 5.0.2
 +
| 5/19/2010
 +
| Initialization
 +
|}
 +
 
 +
{{ZKComponentReferencePageFooter}}

Revision as of 11:35, 19 May 2010

Captcha

Employment/Purpose

A captcha component can generate a special distortion image, also called a CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) image. Developers could set height and width for dimension of captcha. By default, captcha render the image with a randomly generated text, and developers can set value to assign a purposive text.


Example

Captcha.png

 <vbox>
     <captcha id="cpa" length="5" width="200px" height="50px"/>
 </vbox>


Supported events

Name
Event Type
onClick
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]

Description: Denotes user has clicked the component.

Use getX(), getY() method get coordinates.

Supported Children

*NONE

Use cases

Version Description Example Location
     

Version History

Version Date Content
5.0.2 5/19/2010 Initialization



Last Update : 2010/05/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.