spellchecker_correct_error_handler

Client side event handler for ClientSideOnCorrectError event.

Note: This is a prototype, not a function. You should provide a function that matches this prototype if you wish to handle the corresponding event on the client side. The prototype provides information about the arguments and return value of the function you provide.

Syntax
JavaScript
 spellchecker_correct_error_handler(spellChecker, element, oldText, newText)

Parameters

spellChecker
The SpellChecker control that triggers this event.
element
The DOM element where this change occurs. See remark section for more details.
oldText
The old (wrong) text.
newText
The new text.
Remarks

This is a prototype, not a function. To handle ClientSideOnCorrectError, you must implement a function that matches this prototype and then set the SpellChecker control's ClientSideOnCorrectError to the name of your function.

The element argument is the DOM element that contains the word that has been changed. You would usually use element as a starting point to walk up the parent chain to locate any context information in which the change occurs. For example, if the changes occurs in a DataGrid, you can use this argument to determine which cell has been changed.

See Also