Using Script EventsLast Updated: 9/22/2008 | |
| Sections above here: Home » Development » Javascript | |
|
Sections below here: Topics in this section: |
Many IntraWeb visual controls have events associated with them such as the button's OnClick event. This allows you to program the events like a standard application. However, there are some specific JavaScript events that are not available. Although events such as OnBlur, OnFocus, etc are not available directly, you can still use them via the ScriptEvents property of the control. Accessing ScriptEvents property in DelphiBy double-clicking on this property, the ScriptEvents editor is displayed. ![]() Once loaded, there is a list of events associated with that control. These events correspond to JavaScript events, therefore, any code entered has to be JavaScript code and not Delphi or C++ code.
Open the ScriptEvents window from the control's properties:
and add the code for the wanted JavaScript event:
To see how to associate an event with one of these, see the next two sections. (Note: Since IW 3.2 controls rely EXCLUSIVELY on HTML and do no use JavaScript or CSS, ScriptEvents is not available for these controls) |
(C) 2002-2009 - Atozed Software Ltd. | |