https://github.com/bcambl/jquery-image-refresh
A simple method of refreshing an image on a webpage at a specific interval.
https://github.com/bcambl/jquery-image-refresh
Last synced: 4 months ago
JSON representation
A simple method of refreshing an image on a webpage at a specific interval.
- Host: GitHub
- URL: https://github.com/bcambl/jquery-image-refresh
- Owner: bcambl
- Created: 2013-10-12T21:07:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-12T21:20:54.000Z (over 12 years ago)
- Last Synced: 2025-02-27T11:28:46.409Z (over 1 year ago)
- Size: 109 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Refreshing an image with jQuery
===============================
This is some code I used to refresh an image on a website without the need to refresh the whole page.
This is useful if you are using a camera that is overwriting an image every time with the same image name.
Normally you would see jQuery using the $ as a function or variable name. Since I was using this with a WordPress implementation, jQuery is already running in "noconflict" mode.
If you do not know about jQuery.noConflict() and why it is used.. check out the documentation at:
[http://api.jquery.com/jQuery.noConflict/](http://api.jquery.com/jQuery.noConflict/)
###Instructions:
* Replace "URL_TO" to be the url to the image
* Replace "ID_OF_IMAGE" to be the id of the image