Adding a Client-Side Event to a DataWindow

DataWindow client-side events are implemented using Java scripts.

To add a client-side event:

  1. 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.

  2. 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.

  3. Select the client-side event scripts for the DataWindow and click OK.

    Client-side events

    Client eventEvent fired in browser through client-side DataWindow object model when:
    buttonClickingDataWindow button is clicking in the DataWindow in the browser.
    buttonClickedDatawindow button is clicked in the DataWindow in the browser.
    onClickedMouse 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.
    itemFocusChangedFocus is changed to another data item.
    rowFocusChangingFocus is going to be changed to another row.
    rowFocusChangedFocus changes to another row.
  4. Edit the Client Side event Java script to accommodate the task that you want to accomplish.

Next: Test the Web page

Adding a Server-Side Event to a DataWindow

Developing a Web Application

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com