When used in AJAX mode, Nevron web controls load the Nevron JavaScript Library to the client web browser. The Library implements the client side functionality required for user input to be intercepted, routed and handled at the server and feedback to be returned. It also implements pure client side interactivity.
The general patterns, used by Nevron web controls at the client, are: priority event pools; and controller and tools.
When a user input event is intercepted by the web browser and it is recognized as relevant to the web control, the event is first delivered to an event pool. If there is an event that is being processed at the moment, the new event is stored by the pool for delayed processing. Otherwise, the event is routed to the controller. The controller passes the event to all registered and enabled tools in a row. Every tool optionally adds one or more commands to a command queue and returns. Afterwards the commands are executed synchronously in the order they have entered the queue. Some commands may perform client-only actions, like displaying tooltips or redirecting the web browser. Other commands may invoke an AJAX callback server request and wait until the server responds or the request timeouts.
Tools can be initially configured at the server from the code behind. Also, tools can be added, removed, enabled or disabled at the client from custom JavaScript code.
For usage details, please refer to the AJAX web examples that are installed by the Nevron .NET Vision installation.
Also, a good source of information is the Nevron AJAX How To topic, included later in this chapter.