Glossary Item Box

Client-side API: Editor client-side APIInputDate client-side APITabControl client-side API

See Also AspLib component library Send comments on this topic.

Client-Side events

Most part of AspLib components has different client events. Client-Side events editor is used to edit them. Client-side events editor lets you define any client-side event for any AspLib control as easy as it can be.

Context help will tell you event usage and its properties.

 


EnlargeClick to enlarge

 

If you need to stop any event, return false.

tooltip1.ClientOnShow = "alert('I stop the event.'); return false;";
 

Event and args objects are sent to the function during the call of a client event. 

The following args properties provide information specific to this event. This object always contains next properties: 

Property Description
ClientID ClientID of the control to which this event belongs
UniqueID UniqueID of the control to which this event belongs

 

The following event properties are available (it's standard window.event object): 

Property Description
altKey Sets or retrieves a value that indicates the state of the ALT key.
altLeft Sets or retrieves a value that indicates the state of the left ALT key.
cancelBubble Sets or retrieves whether the current event should bubble up the hierarchy of event handlers.
clientX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
clientY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
ctrlKey Sets or retrieves the state of the CTRL key.
ctrlLeft Sets or retrieves the state of the left CTRL key.
offsetX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the object firing the event.
offsetY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event.
screenX Retrieves the x-coordinate of the mouse pointer's position relative to the user's screen.
screenY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the user's screen.
shiftKey Sets or retrieves the state of the SHIFT key.
shiftLeft Retrieves the state of the left SHIFT key.
srcElement Sets or retrieves the object that fired the event.
type Sets or retrieves the event name from the event object.
x Sets or retrieves the x-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.
y Sets or retrieves the y-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.
clientX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
clientY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
ctrlKey Sets or retrieves the state of the CTRL key.

Client-side API: Editor client-side APIInputDate client-side APITabControl client-side API

 

 


© 2002-2007 Astron Digital. All Rights Reserved.