View Single Post
 
Old June 15th, 2006, 06:15 AM
ckamheng ckamheng is offline
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ckamheng
Default periodical refresh

hi,
i am having difficulties here.
Below is my situation:

i need to periodically refresh a jpeg image in a web page. The jpeg image is stored in a server with apache installed. The jpeg image's source is coming from a live camera connected to the server.

how to write a program in ajax to update the jpeg image every 5 seconds.Given that the jpeg image changes every 5 seconds.

Note: i am using <img> tag and the <img> is located in a <table> with <tr> and <td>.

Can anyone write me a working sample program please. I tried b4 but the jpeg image keeps on flickering.....
Thanks.