Hello

Lets say we have a database where things are going to be added at
random times, over the whole day. I want a AJAX script to load new
items every 5s (its a local database so no problem with spamming it)
and for each of these items I have to do a AJAX request to get some
more data...

>From the back-end I will get something like:
unique ID
time
number
name
text

How do I detect which items I already have added to my site?
Because If I just get the latest one, there is a chance I miss
something, so its safest if the back-end returns the latest 5 items,
or?
Any example code how to use the unique ID to validate that I got every
row I wanted?
Am I thinking completely wrong? I have access to the back-end also so
I can change what I want..

Help needed! Thanks ;)

Reply via email to