Live command
Update the source of an image or an iframe periodically, great for webcam images.
Basic Usage (HTML)
data-jkit="[live:interval=10]"
Advanced Init (JavaScript)
$('#myelement').jKit('live', { 'interval': '10' });
Options
| Option | Values | Default | Description |
|---|---|---|---|
| interval | Int (Seconds) | 60 | In which interval to replace the src attribute |
Events
| Event | Description |
|---|---|
| reloaded | Triggered whenever the content is finished reloading |
Examples
Webcam example:
In this example we replace a webcam image once per minute:

Source:
<img src="http://www.gleitschirm.ch/fileadmin/livecam/kamera-links.jpg" width="500" data-jkit="[live:interval=60]">
Replacements
There are currently no replacements for this command.
[ Learn more about replacements ]
Discussions
Do you have questions or do you want to suggest new features? Than head over to our new community:
[ jKit Community ]


