Captcha"
From Documentation
Tmillsclare (talk | contribs) m (Created page with 'init') |
m |
||
Line 1: | Line 1: | ||
− | + | {{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 | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | =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
- Demonstration: Capcha Demo
- Java API: Captcha
- JavaScript API: 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
<vbox>
<captcha id="cpa" length="5" width="200px" height="50px"/>
</vbox>
Supported events
[#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 |