Web Sample Timer
| Author | hanniek |
|---|---|
| Date submitted |
|
| Category | Uniface Web |
| Sample file | RiaTimer.zip |
Description
This sample demonstrates how you can use a standard JavaScript timer object to schedule events in a dynamic server page (DSP). It features a DSP component (US_TIMER) that provides a Uniface wrapper around the JavaScript timer object, allowing it to be activated by other DSPs. In this sample, it is used by DSPs that run an analog clock and a stopwatch, but the timer itself is generic and can be used by any DSP. The sample demonstrates the following functionality:
- Uniface run-at-client functionality that enables logic to be executed in the browser instead of the server, including:
- weboperation and webtrigger definitions, which are coded in JavaScript instead of Proc
- Uniface JavaScript API
- Updatable StaticText and Picture widgets, which can be updated by JavaScript in the browser
- Uniface DSPContainer widgets
- JavaScript timer methods setInterval and clearTimeout
For further information see the readme file in the download.
