ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Hello, i have a websituation wher i have to refresh a client side page when a change is made to the database. thing is i dont want the whole page to refresh as this would reset any textfield that have been filled in.
so it needs to be a div layer that gets refreshed.
one way would be to have the div layer refresh every x seconds and with every refresh the database gets queried and any new results are imidiatly shown to the client.
what i would like is that the client page only refreshes the div if a change has been made to the database...
i have managed to get a div refreshing every x seconds but it doesnt seem to be refreshing the php script, only the origional first-time content..
any idea's people?
thanks,
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
so it needs to be a div layer that gets refreshed.
one way would be to have the div layer refresh every x seconds and with every refresh the database gets queried and any new results are imidiatly shown to the client.
what i would like is that the client page only refreshes the div if a change has been made to the database...
i have managed to get a div refreshing every x seconds but it doesnt seem to be refreshing the php script, only the origional first-time content..
any idea's people?
thanks,
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!