|
Framework JavaScript ACube V2.10.0 | ||||||||
CLASSE PRECEDENTE CLASSE SUIVANTE | CADRES SANS CADRES | ||||||||
SOMMAIRE: ATTR | CONSTR | METH | DETAIL: ATTR | CONSTR | METH |
Object | +--ComponentCaptcha
the class « ComponentCaptcha » is the class who it's able to manage the component
Captcha.
Private attributes is used within the framework ergonomic side.
IHM
Capcha picture:
By default, this captcha is a picture captcha type, i.e. that associated service
(via captcha_url) generates a file of the type image and sends it to the navigator. Consequently,
it not surprising that the function ecrireHTMLCaptchaTypeFile
returns a <img> tag.
However the developer keeps the possibility of extending this class and he can overloading this
method, such is his wish to use another type of captcha.
Date: 02/01/2008
Version: 2.8
Definie dans ergonomique/fw_captcha.js
Sommaire des Attributs | |
<private> String |
border
Private attribute « captcha_border « - This attribute fixes the border of the captcha. |
<private> String |
divBind
Private attribute « divBind » - dynamic Zone (object DOM HTML) associated with the component. |
<private> String |
height
Private attribute « height » - This attribute fixes the height of the captcha. |
<private> string |
id
Private attribute « id » - ID of the component defines in the form. |
<private> string |
name
Private attribute « name » - it is the name of the captcha which one will use with Acube Captcha Service. |
<private> String |
url
Private attribute « url » - Parameter which indicates the URL of the servlet who controls the services captcha of Acube. |
<private> String |
userTextValue
Private attribute « userTextValue » - This attribute gives the string that it's necessary to display in user's input text. |
<private> String |
width
Private attribute « width » - This attribute fixes the width of the captcha and user's input text too. |
Sommaire des Constructeurs | |
ComponentCaptcha
(<String_Obligatoire> div_id, <String_Obligatoire> captcha_name, <String_Obligatoire> captcha_url, captcha_userTextValue, <String_Optionnel> captcha_height , <String_Optionnel> captcha_width , <String_Optionnel> captcha_border)
Create a Captcha Type object. |
Sommaire des Méthodes | |
boolean
|
checkUserKey()
This public method « checkUserKey() » checks that the user's zone of text is not empty. |
void
|
ecrireBind()
This public method « ecrireBind() » start the generation of code HTML of the dynamic zone associated with the component. |
<private> string
|
ecrireElementDomHTML()
The private method « ecrireHTML()» is used to generate the style HTML. |
<private> string
|
ecrireHTMLCaptchaTypeFile()
The private method « ecrireHTMLCaptchaTypeFile()» is a function who return html code according to type of file generated by captcha service. |
Object
|
getUserKey()
This public method « getUserKey() » returns the user's input text element. |
void
|
getValue()
This private method « getValues() » concats Captcha Component paramaters to a unique string. |
<private> void
|
initDivBind()
This private method « initDivBind() » is used to specify a variable who refers html div. |
Détail des Attributs |
<private> String border
<private> String divBind
<private> String height
<private> string id
<private> string name
<private> String url
<private> String userTextValue
<private> String width
Détail des Constructeurs |
ComponentCaptcha(<String_Obligatoire> div_id, <String_Obligatoire> captcha_name, <String_Obligatoire> captcha_url, captcha_userTextValue, <String_Optionnel> captcha_height , <String_Optionnel> captcha_width , <String_Optionnel> captcha_border)
div_id - String_Obligatoire
String : indicate the id component to create.
captcha_name - String_Obligatoire
String : indicate the name of used captcha service.
captcha_url - String_Obligatoire
String : indicate the servlet of captcha [The Captcha Services controller].
captcha_height - String_Optionnel
Entier : indicate the height.
captcha_width - String_Optionnel
Entier : indicate the width.
captcha_border - String_Optionnel
Entier : indicate the border.
Détail des Méthodes |
boolean checkUserKey()
None -
void ecrireBind()
None -
<private> string ecrireElementDomHTML()
none -
<private> string ecrireHTMLCaptchaTypeFile()
None -
Object getUserKey()
None -
void getValue()
None -
<private> void initDivBind()
Aucun -
|
Framework JavaScript ACube V2.10.0 | ||||||||
CLASSE PRECEDENTE CLASSE SUIVANTE | CADRES SANS CADRES | ||||||||
SOMMAIRE: ATTR | CONSTR | METH | DETAIL: ATTR | CONSTR | METH |