[jQuery] Re: Using JQuery instead of the Java applet for a web cam. Ideas? Suggestions?

2009-02-17 Thread lampshade
This worked out perfectly! Thanks for the advice! I wouldn't have thought to use the empty ? parameter to force it to reload an image. That is super clever. Thanks James and Danny. On Feb 12, 7:41 pm, Danny d.wac...@prodigy.net wrote: Changing the image source is the simplest Ajaxy thing to

[jQuery] Re: Using JQuery instead of the Java applet for a web cam. Ideas? Suggestions?

2009-02-12 Thread James
You can use Javascript's setInterval function to constantly do a check to update an image source. How does the filename look like? Is it predictable? On Feb 12, 12:15 pm, lampshade mwolff...@gmail.com wrote: Hello, I was given a web cam to use, but unfortunately it pulls the image into a

[jQuery] Re: Using JQuery instead of the Java applet for a web cam. Ideas? Suggestions?

2009-02-12 Thread Danny
Changing the image source is the simplest Ajaxy thing to do, just $ ('#webcamimage').attr('src', 'http://example.com/cam.jpg'). If the filename is always the same, the browser will use the version of the image from cache, which is not what you want. Add a query string to change the filename: