| JavaScript

Visual JavaScript JSB Palette Item Source

The following are the JavaScript components that come with Visual JavaScript. The link displays the source of the JSB file.

### Database Components

Most database components run on the server, where they can access the LiveWire database service of server-side JavaScript. A few run on the client and use other methods to get data from the database through the Enterprise server.

- ClientCursor.jsb: A client-side LiveConnect component that makes exclusive use of the following Java classes:

- ClientSideCursor
- CSCException

- Cursor.jsb: Creates a cursor on the server from an SQL query.
- CustomTable.jsb: Displays query results in an HTML table. Uses:

- cCustomTable.js: client-side JavaScript file that defines functions used in the JSB constructor

- DBPool.jsb: Represents a pool of LiveWire database connections.
- DBSelect.jsb: Displays query results in an HTML SELECT element. Uses:

- cSelectBox.js: client-side JavaScript file that defines a function

- DBSource.jsb: Represents a Visual JavaScript data source
- DummyCursor.jsb: A client-only component that mimics JSBufferedCursor for testing and learning purposes.
- FormAccept.jsb: Accepts a form submission and performs an insert, update, or delete to the database
- JavaDummyCursor.jsb: A client-only component that mimics ClientCursor
- JSBufferedCursor.jsb: Creates a cursor on the server and then creates a client-side image of it in JavaScript.
- SimpleTable.jsb: Creates a basic HTML table from a SQL query
- SQLExec.jsb: Executes SQL on the server

### Client-side JavaScript Components

- BiCalc.jsb: Illustrative sample component
- Calc4.jsb: Illustrative sample component
- Concat.jsb: Illustrative sample component
- DateDisplay.jsb: Displays current date or the date when the document was last modified
- MailToLink.jsb: Creates a mailto: hyperlink that opens up a mail composition window
- ScrollingBanner.jsb: Displays a scrolling message in the Navigator's status bar
- ValidatedText.jsb: A validated text field

### Other JavaScript Components

- Label.jsb: Evaluates a JavaScript expression on the server and formats it in HTML. Useful for displaying a single value from a cursor, among other things.
- SendMail.jsb: Sends a mail message from server-side JavaScript

( return to the top of the page )