JavaScript Client Reference Guide

Captcha

Methods

constructor(options)
Parameters:
getId()
Parameters:
none
Return Value:
idstring
CAPTCHA id
getUserAttempt()
Parameters:
none
Return Value:
userAttemptstring
key for the CAPTCHA

Interfaces

CaptchaOptions
A JavaScript object containing the following:
captchaIdstring
the CAPTCHA id
displayInformationJavaScript object
information supplied by NetToolKit's Shibboleth service about how the CAPTCHA should be rendered (to be passed to the JavaScript client)
elementIdstring
the id of the element the CAPTCHA be attached to
inputElementElement
a custom input for CAPTCHAs with text input. Must be an input element or an element with a single input element as a child.

Constants

type

PATH

SPLIT

SPOTTER

MATH

SUBSTRING

BASIC

DATE

NAVAL_COMMAND