ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - Captcha - Client side

Obout.Ajax.UI.Captcha.CaptchaImage class

 Inheritance Hierarchy

It is a client-side representation of the server-side Obout.Ajax.UI.Captcha.CaptchaImage class.
Note Note
To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get a value for a property such as element, you call the get_element method:
var captchaImageObject = $find("<%= Captcha1.ClientID %>");
var imageElement = captchaImageObject.get_element();
To set a value for a property such as showProgress, you call the set_showProgress method:
captchaImageObject.set_showProgress(false);

Properties

Name Description
propertyaudioEnabled boolean. Gets or sets a value indicating whether an audio support is enabled.

Default false.
propertyaudioLink HTML element. Gets the 'get audio code' link element.

Default null.
propertyelement node. Gets the DOM element that the current control object is associated with (IMG). (Inherited from Sys.UI.Control.)
propertyprogressImageSrc string. Gets or sets the SRC attribute of the progress image.

Its default value depends on the ProgressImage server-side property.
propertyprogressLayerCssClass string. Gets or sets the class name of the progress layer when a new control's image is loading.

Default "oaui_captchaprogresslayer" (embedded CSS class) .
propertyprogressLayerZIndex number. Gets or sets the Z-index of the progress layer and image when a new control's image is loading.

Default 10000.
propertyshowProgress boolean. Gets or sets a value indicating whether to show the progress layer and image while a new control's image is loading on the getNewImage() method call.

Default true.

Public methods

Name Description
methodbeginProgress() Activates the progress layer and image.
methodendProgress() Deactivates the progress layer and image.
methodgetNewImage() Generates a new image for the control.

Example:

<a href="javascript: $find('<%= Captcha1.ClientID %>').getNewImage();">
Generate a new image</a>
Note Note
To add or remove handler functions for client API events, you must call methods that are named with the add_ and remove_ prefixes. For example, to add or remove a handler function for an event such as imageChanged, you call the add_imageChanged or remove_imageChanged methods:
function imageChangedHandler(sender, args) {
...
}
...
var captchaImageObject = $find("<%= MyCaptchaImage.ClientID %>");
captchaImageObject.add_imageChanged(imageChangedHandler);
...
captchaImageObject.remove_imageChanged(imageChangedHandler);

Events

Name Description
propertyimageChanged Raised after the captcha image was changed.
Event's argument has type Sys.EventArgs.Empty.

"Thank you again for your continued support."

Marvin Haiman
The Metropolitan Police Department

Random testimonial   All testimonials