I am trying to enable a feature like this:

1. user goes to page 1
2. enters data to search box
3. receives response 'wait a minute there may be an answer'
4. after a period of time, their page refreshes with a new update to the message, triggered by my server using (amongst other things), their IP address.

Can this be done as described or can anyone suggest a better solution, please.