Framework JavaScript ACube V2.10.0
 

Classe ComponentCaptcha

Object
   |
   +--ComponentCaptcha

class 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.


model


IHM

Capcha picture:



PictureComponentCaptcha

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

border

<private> String border

divBind

<private> String divBind

height

<private> String height

id

<private> string id

name

<private> string name

url

<private> String url

userTextValue

<private> String userTextValue

width

<private> String width

Détail des Constructeurs

ComponentCaptcha

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)

Détail des Méthodes

checkUserKey

boolean checkUserKey()

ecrireBind

void ecrireBind()

ecrireElementDomHTML

 <private> string ecrireElementDomHTML()

ecrireHTMLCaptchaTypeFile

 <private> string ecrireHTMLCaptchaTypeFile()

getUserKey

Object getUserKey()

getValue

void getValue()

initDivBind

 <private> void initDivBind()

Framework JavaScript ACube V2.10.0
 

Version 2.10.0, / Etat : Validé
Cette création est mise à disposition selon le Contrat Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique disponible en ligne http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ ou par courrier postal à Creative Commons, 559 Nathan Abbott Way, Stanford,California 94305, USA.


Documentation generated by JSDoc on Wed Jan 6 17:05:02 2010