To main page | Opera Unite HowTo's
Cron example Example:
setInterval( function () {
widget.showNotification('test!')
}, 15000 );
This shows notification every 15 seconds.
(You don't need to put it inside of request or window.onload).
Auto-reloading and timers
Be warned that if you use Debug Mode in Uniteness (or maybe Reset in Yusef), which automatically reloads scripts on each request - this will pile up. I.e. old timers are not deleted and you might end up having dozens of timers working simultaneously.
This can be called "crontab", "cron", "timer" in other applications.
| Last updated
- Markuper (HTML templates)
- .ua
- Opera Unite HowTo's
- .us (files)
- Distribute Your Application
- 24/7 sites (permanent applications - idea) [stub]
- Issues
- HTTP Connections (AJAX/REST)
- Cookies
- file_wrap.js - File Wrapper
- Basic HowTo: Simple app (tutorial)
- Static images, client-side scripts
- Application Examples
- How to Debug Opera Unite apps
- Persistence & databases
- Opera Unite benchmark
- From PHP to Opera Unite
- Uniteness (Framework)
- Config.xml
- Key-value storage
- Widget Object
- Notifications (Growl'esque)
- Reset (debug)
- Cron example
- What I meant by CNAMEs
- Wish List
- Device Unavailable
- StopLorem (Opera Unite blogging)
- uniteness-0.11
- GET/POST data
- CRUD And Static (example)
- Opera object
- URLs
- Headers & Redirects
- Error Console
- JSON State (storing data)
- Security
- /storage/ (in fileio)
- Yusef library
- unite_info (a-la php_info)
- Javascript Imports
- onunload / _close
- fileio: Sandboxed Filesystem
- Request Hierarchy (like php_info)
- Intro: Web Apps with Opera Unite
|