DataWindow client-side events are implemented using Java scripts.
To add a client-side event:
Select the .jsp file in the WorkSpace Navigator for the Web page on which you want to create a client-side event.
The Web Page editor opens displaying the Web page.
In the Web Page editor, right-click the DataWindow you want to use and select Edit Client Side Even Scripts from the context menu.
The Edit Client Side Event Scripts dialog box appears.
Select the client-side event scripts for the DataWindow and click OK.
Client-side events
Client event | Event fired in browser through client-side DataWindow object model when: |
---|---|
buttonClicking | DataWindow button is clicking in the DataWindow in the browser. |
buttonClicked | Datawindow button is clicked in the DataWindow in the browser. |
onClicked | Mouse is clicked in the DataWindow in the browser. |
itemChanged | DataWindow data item is changed in the browser by the user. |
itemError | DataWindow data item change does not pass the client-side validation. |
itemFocusChanged | Focus is changed to another data item. |
rowFocusChanging | Focus is going to be changed to another row. |
rowFocusChanged | Focus changes to another row. |
Edit the Client Side event Java script to accommodate the task that you want to accomplish.
Next: Test the Web page
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com